I know this borders on the line of Apache/PHP install/config options but I hope you guys can help me. I have posted this on Drupal and a few other sites with no resolve. I am trying to install Drupal(a simple CMS) on a webserver that has register_globals enabled. I need to disable them for Drupal to work and have scoured the web for 2 days looking for a solution but nothing works. The host is willing to help with any type of workaround that would affect just me but can’t disable the globals affecting all. This is what I have tried so far:
I created a custom php.ini file to use in my directory but it’s not using it. I used an ini file with just the setting I wanted changed: register_globals = Off then I tried a copy of hosts default ini with that one thing changed. Still nothing. To test I put in a file to show the phpinfo and it states that it is NOT using my custom ini.
So my next option was an .htaccess file to override that setting;
I created one with the following info only(php_flag register_globals off) but I get an Internal Server Error 500.
Then I created another with the following but it gave the same error.
PHP 5, Apache 1 and 2.
php_value register_globals 0Th host assured me AllowOverride All is on.
The log from host shows:
[Sat Feb 02 17:47:25 2008] [alert] [client ************] /home//public_html/.htaccess: Options not allowed here
[Sat Feb 02 17:49:56 2008] [alert] [client ************] /home//public_html/.htaccess: php_flag not allowed here
Does anyone know what we need to enable or change to allow custom ini/htaccess files?