Page 1 of 2 12 Last
  1. #1
    [PwF]Hchest's Avatar
    Registered
    07/06/10
    Location
    Regio Brugge
    Posts
    799
    iTrader
    2 (100%)
    Mentioned
    0 Post(s)
    Reputation
    0/3

    Drupal register globals

    PHP register globals Enabled ('1')
    register_globals is enabled. Drupal requires this configuration directive to be disabled. Your site may not be secure when register_globals is enabled. The PHP manual has instructions for how to change configuration settings.
    Heb al vanalles gegoogled en geprobeerd!

    Ikzelf heb niet de machten om via cpanel het te veranderen en een php.ini file of htaccess file te maken met code erin loopt enkel op een server error 500 uit..

    Iemand die hier ervaring mee heeft?
    Mijn host xynta.nl is momenteel niet zo hulpvaardig, ze denken namelijk dat ik scripthulp vraag terwijl het om serversettings gaat... zucht

    Mvg
    Hchest
    IRACING: A klasse
    SETUP:Fanatec CSL seat, CSR wheel, Clubsport V2 pedals [ mod: Tilton style pedalpads ], Trustmaster TH8RS Shifter, Derek Spears Designs P1 Button Box
    SETUP EXTRA'S: Obutto Triple monitor stand, Buttkicker Gamer 2 met Simvibe, Soundshift v3.1, Playseat vloermat.
    SCHERMEN: 3 keer AOC 23 Inch i2369Vm
    no votes  

  2. #2
    W0utR's Avatar
    Registered
    16/04/08
    Location
    Hong Kong
    Posts
    1,989
    iTrader
    6 (100%)
    Mentioned
    0 Post(s)
    Reputation
    7/9
    Heb je het al met ini_set() geprobeerd?
    no votes  

  3. #3
    [PwF]Hchest's Avatar
    Registered
    07/06/10
    Location
    Regio Brugge
    Posts
    799
    iTrader
    2 (100%)
    Mentioned
    0 Post(s)
    Reputation
    0/3
    Verklaar nader..

    Dit is alle info dat ik jullie kan geven btw [ update! ]
    Requirements problem
    Drupal
    Installation tasks

    Choose profile(done)
    Choose language(done)
    Verify requirements(active)
    Set up database
    Install profile
    Configure site
    Finished

    OK
    Web server Apache
    OK
    PHP 5.2.17
    Error
    PHP register globals Enabled ('1')
    register_globals is enabled. Drupal requires this configuration directive to be disabled. Your site may not be secure when register_globals is enabled. The PHP manual has instructions for how to change configuration settings.
    OK
    PHP extensions Enabled
    OK
    Database support Enabled
    OK
    PHP memory limit 64M
    OK
    File system Writable (public download method)
    OK
    Unicode library PHP Mbstring Extension
    OK
    Settings file The ./sites/default/settings.php file exists.
    OK
    Settings file The settings file is writable.
    Check the error messages and proceed with the installation.
    Last edited by [PwF]Hchest; 18-02-2012 at 17:18.
    IRACING: A klasse
    SETUP:Fanatec CSL seat, CSR wheel, Clubsport V2 pedals [ mod: Tilton style pedalpads ], Trustmaster TH8RS Shifter, Derek Spears Designs P1 Button Box
    SETUP EXTRA'S: Obutto Triple monitor stand, Buttkicker Gamer 2 met Simvibe, Soundshift v3.1, Playseat vloermat.
    SCHERMEN: 3 keer AOC 23 Inch i2369Vm
    no votes  

  4. #4
    W0utR's Avatar
    Registered
    16/04/08
    Location
    Hong Kong
    Posts
    1,989
    iTrader
    6 (100%)
    Mentioned
    0 Post(s)
    Reputation
    7/9
    PHP: ini_set - Manual

    ini_set kan dus de waarde van je php.ini file aanpassen tijdens het uitvoeren.
    In jouw geval zou ini_set('register_globals', 'false'); dus moeten werken.

    Plaats dit ergens in je drupal template, of gewoon in je template.php.
    no votes  

  5. #5
    [PwF]Hchest's Avatar
    Registered
    07/06/10
    Location
    Regio Brugge
    Posts
    799
    iTrader
    2 (100%)
    Mentioned
    0 Post(s)
    Reputation
    0/3
    Ok, het is tijdens het installeren dat hij deze error heeft, dus in install.php zou ook kunnen kloppen?

    En moet de php.ini bestand al bestaan en op chmod 777 staan?
    Zoja= dan maak ik terug eentje aan die leeg is.

    Met dank!
    IRACING: A klasse
    SETUP:Fanatec CSL seat, CSR wheel, Clubsport V2 pedals [ mod: Tilton style pedalpads ], Trustmaster TH8RS Shifter, Derek Spears Designs P1 Button Box
    SETUP EXTRA'S: Obutto Triple monitor stand, Buttkicker Gamer 2 met Simvibe, Soundshift v3.1, Playseat vloermat.
    SCHERMEN: 3 keer AOC 23 Inch i2369Vm
    no votes  

  6. #6
    W0utR's Avatar
    Registered
    16/04/08
    Location
    Hong Kong
    Posts
    1,989
    iTrader
    6 (100%)
    Mentioned
    0 Post(s)
    Reputation
    7/9
    Heb me misschien verkeerd verwoord, hij past de waarden in de file zelf niet aan, maar hij veranderd wel de waarden tijdens het uitvoeren.

    Zet die ini_set() gewoon in de index file van drupal.
    no votes  

  7. #7
    [PwF]Hchest's Avatar
    Registered
    07/06/10
    Location
    Regio Brugge
    Posts
    799
    iTrader
    2 (100%)
    Mentioned
    0 Post(s)
    Reputation
    0/3
    <?php

    /**
    * @file
    * The PHP page that serves all page requests on a Drupal installation.
    *
    * The routines here dispatch control to the appropriate handler, which then
    * prints the appropriate page.
    *
    * All Drupal code is released under the GNU General Public License.
    * See COPYRIGHT.txt and LICENSE.txt.
    */

    /**
    * Root directory of Drupal installation.
    */
    define('DRUPAL_ROOT', getcwd());

    require_once DRUPAL_ROOT . '/includes/bootstrap.inc';
    drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
    menu_execute_active_handler();
    das mijn index.php
    waar moet ik het juist copy pasten?
    IRACING: A klasse
    SETUP:Fanatec CSL seat, CSR wheel, Clubsport V2 pedals [ mod: Tilton style pedalpads ], Trustmaster TH8RS Shifter, Derek Spears Designs P1 Button Box
    SETUP EXTRA'S: Obutto Triple monitor stand, Buttkicker Gamer 2 met Simvibe, Soundshift v3.1, Playseat vloermat.
    SCHERMEN: 3 keer AOC 23 Inch i2369Vm
    no votes  

  8. #8
    W0utR's Avatar
    Registered
    16/04/08
    Location
    Hong Kong
    Posts
    1,989
    iTrader
    6 (100%)
    Mentioned
    0 Post(s)
    Reputation
    7/9
    Gewoon vanboven, onder <?php.
    no votes  

  9. #9
    [PwF]Hchest's Avatar
    Registered
    07/06/10
    Location
    Regio Brugge
    Posts
    799
    iTrader
    2 (100%)
    Mentioned
    0 Post(s)
    Reputation
    0/3
    Dan krijg ik gewoon dezelfde error tijdens het installeren, ook geprobeerd om die code in de install.php file te zetten maar ook dezelfde error.

    die ini set is toch een trukje om te laten denken dat het op off staat niet?
    Zoja denk ik niet dat drupal erin loopt
    IRACING: A klasse
    SETUP:Fanatec CSL seat, CSR wheel, Clubsport V2 pedals [ mod: Tilton style pedalpads ], Trustmaster TH8RS Shifter, Derek Spears Designs P1 Button Box
    SETUP EXTRA'S: Obutto Triple monitor stand, Buttkicker Gamer 2 met Simvibe, Soundshift v3.1, Playseat vloermat.
    SCHERMEN: 3 keer AOC 23 Inch i2369Vm
    no votes  

  10. #10
    W0utR's Avatar
    Registered
    16/04/08
    Location
    Hong Kong
    Posts
    1,989
    iTrader
    6 (100%)
    Mentioned
    0 Post(s)
    Reputation
    7/9
    ok, en zet register_globals = off eens in een php.ini file dat je aanmaakt, werkt dat?

    Het is trouwens geen trukje, lees even de documentatie door op php.net.

    Vraag je host desnoods om het af te zetten, ze kunnen die voor elke site doen.
    no votes  

  11. #11
    [PwF]Hchest's Avatar
    Registered
    07/06/10
    Location
    Regio Brugge
    Posts
    799
    iTrader
    2 (100%)
    Mentioned
    0 Post(s)
    Reputation
    0/3
    alles geprobeerd

    Mijn host is niet "key" om dat af te zetten, ze zeggen maar "google" het en trek je plan

    Dit is mijn htaccess file btw:
    #
    # Apache/PHP/Drupal settings:
    #

    # Protect files and directories from prying eyes.
    <FilesMatch "\.(engine|inc|info|install|make|module|profile|te st|po|sh|.*sql|theme|tpl(\.php)?|xtmpl)$|^(\..*|En tries.*|Repository|Root|Tag|Template)$">
    Order allow,deny
    </FilesMatch>

    # Don't show directory listings for URLs which map to a directory.
    Options -Indexes

    # Follow symbolic links in this directory.
    Options +FollowSymLinks

    # Make Drupal handle any 404 errors.
    ErrorDocument 404 /index.php

    # Set the default handler.
    DirectoryIndex index.php index.html index.htm

    # Override PHP settings that cannot be changed at runtime. See
    # sites/default/default.settings.php and drupal_initialize_variables() in
    # includes/bootstrap.inc for settings that can be changed at runtime.

    # PHP 5, Apache 1 and 2.
    <IfModule mod_php5.c>
    php_value register_globals off
    php_flag magic_quotes_gpc off
    php_flag magic_quotes_sybase off
    php_flag register_globals off
    php_flag session.auto_start off
    php_value mbstring.http_input pass
    php_value mbstring.http_output pass
    php_flag mbstring.encoding_translation off
    </IfModule>

    # Requires mod_expires to be enabled.
    <IfModule mod_expires.c>
    # Enable expirations.
    ExpiresActive On

    # Cache all files for 2 weeks after access (A).
    ExpiresDefault A1209600

    <FilesMatch \.php$>
    # Do not allow PHP scripts to be cached unless they explicitly send cache
    # headers themselves. Otherwise all scripts would have to overwrite the
    # headers set by mod_expires if they want another caching behavior. This may
    # fail if an error occurs early in the bootstrap process, and it may cause
    # problems if a non-Drupal PHP file is installed in a subdirectory.
    ExpiresActive Off
    </FilesMatch>
    </IfModule>

    # Various rewrite rules.
    <IfModule mod_rewrite.c>
    RewriteEngine on

    # Block access to "hidden" directories whose names begin with a period. This
    # includes directories used by version control systems such as Subversion or
    # Git to store control files. Files whose names begin with a period, as well
    # as the control files used by CVS, are protected by the FilesMatch directive
    # above.
    #
    # NOTE: This only works when mod_rewrite is loaded. Without mod_rewrite, it is
    # not possible to block access to entire directories from .htaccess, because
    # <DirectoryMatch> is not allowed here.
    #
    # If you do not have mod_rewrite installed, you should remove these
    # directories from your webroot or otherwise protect them from being
    # downloaded.
    RewriteRule "(^|/)\." - [F]

    # If your site can be accessed both with and without the 'www.' prefix, you
    # can use one of the following settings to redirect users to your preferred
    # URL, either WITH or WITHOUT the 'www.' prefix. Choose ONLY one option:
    #
    # To redirect all users to access the site WITH the 'www.' prefix,
    # (IANA &mdash; Example domains... will be redirected to IANA &mdash; Example domains...)
    # uncomment the following:
    # RewriteCond %{HTTP_HOST} !^www\. [NC]
    # RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
    #
    # To redirect all users to access the site WITHOUT the 'www.' prefix,
    # (IANA &mdash; Example domains... will be redirected to IANA &mdash; Example domains...)
    # uncomment the following:
    # RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
    # RewriteRule ^ http://%1%{REQUEST_URI} [L,R=301]

    # Modify the RewriteBase if you are using Drupal in a subdirectory or in a
    # VirtualDocumentRoot and the rewrite rules are not working properly.
    # For example if your site is at IANA &mdash; Example domains uncomment and
    # modify the following line:
    # RewriteBase /drupal
    #
    # If your site is running in a VirtualDocumentRoot at IANA &mdash; Example domains,
    # uncomment the following line:
    # RewriteBase /

    # Pass all requests not referring directly to files in the filesystem to
    # index.php. Clean URLs are handled in drupal_environment_initialize().
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_URI} !=/favicon.ico
    RewriteRule ^ index.php [L]

    # Rules to correctly serve gzip compressed CSS and JS files.
    # Requires both mod_rewrite and mod_headers to be enabled.
    <IfModule mod_headers.c>
    # Serve gzip compressed CSS files if they exist and the client accepts gzip.
    RewriteCond %{HTTP:Accept-encoding} gzip
    RewriteCond %{REQUEST_FILENAME}\.gz -s
    RewriteRule ^(.*)\.css $1\.css\.gz [QSA]

    # Serve gzip compressed JS files if they exist and the client accepts gzip.
    RewriteCond %{HTTP:Accept-encoding} gzip
    RewriteCond %{REQUEST_FILENAME}\.gz -s
    RewriteRule ^(.*)\.js $1\.js\.gz [QSA]

    # Serve correct content types, and prevent mod_deflate double gzip.
    RewriteRule \.css\.gz$ - [T=text/css,E=no-gzip:1]
    RewriteRule \.js\.gz$ - [T=text/javascript,E=no-gzip:1]

    <FilesMatch "(\.js\.gz|\.css\.gz)$">
    # Serve correct encoding type.
    Header set Content-Encoding gzip
    # Force proxies to cache gzipped & non-gzipped css/js files separately.
    Header append Vary Accept-Encoding
    </FilesMatch>
    </IfModule>
    </IfModule>
    IRACING: A klasse
    SETUP:Fanatec CSL seat, CSR wheel, Clubsport V2 pedals [ mod: Tilton style pedalpads ], Trustmaster TH8RS Shifter, Derek Spears Designs P1 Button Box
    SETUP EXTRA'S: Obutto Triple monitor stand, Buttkicker Gamer 2 met Simvibe, Soundshift v3.1, Playseat vloermat.
    SCHERMEN: 3 keer AOC 23 Inch i2369Vm
    no votes  

  12. #12
    [PwF]Hchest's Avatar
    Registered
    07/06/10
    Location
    Regio Brugge
    Posts
    799
    iTrader
    2 (100%)
    Mentioned
    0 Post(s)
    Reputation
    0/3
    Iedereen gaan eten? [ neen serieus bedankt om me al zo ver te helpen ]

    Heb al veel bijgeleerd, maar krijg mijn drupal install niet verder dan stap 3 waar hij dus zegt dat global registers op off moet staan :'(
    IRACING: A klasse
    SETUP:Fanatec CSL seat, CSR wheel, Clubsport V2 pedals [ mod: Tilton style pedalpads ], Trustmaster TH8RS Shifter, Derek Spears Designs P1 Button Box
    SETUP EXTRA'S: Obutto Triple monitor stand, Buttkicker Gamer 2 met Simvibe, Soundshift v3.1, Playseat vloermat.
    SCHERMEN: 3 keer AOC 23 Inch i2369Vm
    no votes  

  13. #13
    [PwF]Hchest's Avatar
    Registered
    07/06/10
    Location
    Regio Brugge
    Posts
    799
    iTrader
    2 (100%)
    Mentioned
    0 Post(s)
    Reputation
    0/3
    Installing drupal 5.3 [ werkt met register globals on ]
    IRACING: A klasse
    SETUP:Fanatec CSL seat, CSR wheel, Clubsport V2 pedals [ mod: Tilton style pedalpads ], Trustmaster TH8RS Shifter, Derek Spears Designs P1 Button Box
    SETUP EXTRA'S: Obutto Triple monitor stand, Buttkicker Gamer 2 met Simvibe, Soundshift v3.1, Playseat vloermat.
    SCHERMEN: 3 keer AOC 23 Inch i2369Vm
    no votes  

  14. #14

    Registered
    14/08/10
    Location
    Diest
    Posts
    2,419
    iTrader
    1 (100%)
    Mentioned
    0 Post(s)
    Reputation
    8/16
    Drupal 5? Ik zou toch zeker 6 gebruiken hoor. Komen er nog wel security patches uit voor 5?
    no votes  

  15. #15
    demon326's Avatar
    Registered
    18/04/03
    Location
    Hasselt
    Posts
    14,855
    iTrader
    23 (100%)
    Mentioned
    0 Post(s)
    Reputation
    10/79
    Quote Originally Posted by [PwF]Hchest View Post
    This quote is hidden because you are ignoring this member. Show
    Installing drupal 5.3 [ werkt met register globals on ]
    Waarom een oude en niet ondersteunde versie installeren? Verhuis gewoon van host..
    no votes  

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Log in

Log in