Drupal installation and disabling register globals

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

Moderator: Admins

Drupal installation and disabling register globals

Postby ayumex » Fri Apr 17, 2009 11:51 am

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!
ayumex
newbie
 
Posts: 2
Joined: Fri Apr 17, 2009 11:39 am

Re: Drupal installation and disabling register globals

Postby porcupine » Fri Apr 17, 2009 2:10 pm

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.
admin@prioritycolo.com
http://www.prioritycolo.com
porcupine
Site Admin
 
Posts: 566
Joined: Wed Jun 12, 2002 5:57 pm
Location: Hamilton, Ontario

Re: Drupal installation and disabling register globals

Postby ayumex » Mon Apr 20, 2009 12:05 pm

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

Thanks a lot Myles!
ayumex
newbie
 
Posts: 2
Joined: Fri Apr 17, 2009 11:39 am

Re: Drupal installation and disabling register globals

Postby porcupine » Mon Apr 20, 2009 2:42 pm

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.
admin@prioritycolo.com
http://www.prioritycolo.com
porcupine
Site Admin
 
Posts: 566
Joined: Wed Jun 12, 2002 5:57 pm
Location: Hamilton, Ontario


Return to Web Hosting Assistance

Who is online

Users browsing this forum: No registered users and 1 guest

cron