Hi,
I am trying to install Drupal 6 and it will not install because register_globals is ON. I've confirmed this with phpinfo() and indeed register globals is enabled.
I've tried to disable this flag by adding the following to my .htaccess file located in my public_html root:
>php_flag register_globals off
>Order allow,deny
>Allow from all
This causes 500 Internal Server Errors when attempting to load any page on the site.
Alternatively, I've also tried to create my own php.ini file with register_globals = 0, but it appears that my php.ini file is being ignored (phpinfo does not report a change in the location of php.ini nor does the register globals flag turn off).
Is there any way I can disable register globals?
Thanks!
Drupal installation and disabling register globals
Moderator: Admins
-
- Site Admin
- Posts: 712
- Joined: Wed Jun 12, 2002 5:57 pm
- Location: Toronto, Ontario
- Contact:
Re: Drupal installation and disabling register globals
Hello Ayumex,
Dropping a php.ini file in the same directory as the php script you're trying to execute, should work fine (as long as the permissions are correct/readable (chmod 755 php.ini)).
All it needs to contain is:
register_globals = off
Dropping a php.ini file in the same directory as the php script you're trying to execute, should work fine (as long as the permissions are correct/readable (chmod 755 php.ini)).
All it needs to contain is:
register_globals = off
Re: Drupal installation and disabling register globals
Perfect! That worked. I was installing Drupal from a subdirectory, so putting the php.ini file there helped.
Thanks a lot Myles!
Thanks a lot Myles!
-
- Site Admin
- Posts: 712
- Joined: Wed Jun 12, 2002 5:57 pm
- Location: Toronto, Ontario
- Contact:
Re: Drupal installation and disabling register globals
Quite welcomeayumex wrote:Perfect! That worked. I was installing Drupal from a subdirectory, so putting the php.ini file there helped.
Thanks a lot Myles!