Drupal installation and disabling register globals

Technical support for general webhosting clients and questions relating to their webhosting services.

Moderator: Admins

Post Reply
ayumex
newbie
Posts: 2
Joined: Fri Apr 17, 2009 11:39 am

Drupal installation and disabling register globals

Post by ayumex »

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!
porcupine
Site Admin
Posts: 703
Joined: Wed Jun 12, 2002 5:57 pm
Location: Toronto, Ontario
Contact:

Re: Drupal installation and disabling register globals

Post by porcupine »

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
Myles Loosley-Millman
Priority Colo Inc.
myles@prioritycolo.com
http://www.prioritycolo.com
ayumex
newbie
Posts: 2
Joined: Fri Apr 17, 2009 11:39 am

Re: Drupal installation and disabling register globals

Post by ayumex »

Perfect! That worked. I was installing Drupal from a subdirectory, so putting the php.ini file there helped.

Thanks a lot Myles!
porcupine
Site Admin
Posts: 703
Joined: Wed Jun 12, 2002 5:57 pm
Location: Toronto, Ontario
Contact:

Re: Drupal installation and disabling register globals

Post by porcupine »

ayumex wrote:Perfect! That worked. I was installing Drupal from a subdirectory, so putting the php.ini file there helped.

Thanks a lot Myles!
Quite welcome :)
Myles Loosley-Millman
Priority Colo Inc.
myles@prioritycolo.com
http://www.prioritycolo.com
Post Reply