Register_Globals is ON
Host wont disable, so looking for a work-around.
I added an .htaccess file with the following: php_flag register_globals off
I get Internal Server Error.
I left in the original .htaccess from Drupal and get the same error. However host showed me the log and it displays:
/public_html/.htaccess: Options not allowed here
Asked about AllowOverride and he responded that it is set to All. Could there be more than one AllowOverride that needs to be altered?
Tried to put in a php.ini file containing the following: register_globals = off
No change.
Removed my .htaccess file and left the php.ini, Drupal error Incompatible Environment.
Next I ran a script to copy the hosts php.ini and create a copy in my root with the register_global turned off. This still didn't help, and for some reason I can't edit, or download that created file now.
Permission denied.
Error code: 3
Error message from server: Permission denied
Request code: 3
The host will not disable register_globals but is willing to help with a workaround. Just need to know where to look. Why isn't it following the php.ini or .htaccess in my home directory?
Suggestions.
Please let me know if I can provide anymore info to help resolve the issue. I created this site on a Development server(different host) and when i felt comfortable with the completed project I went to the Production server and started setting up, only to hit this wall. I would hate for all this work to go to waste.
Comments
As an update I was able to
As an update I was able to get a copy of the default php.ini and place it in my directory with globals turned off, but when I view the phpinfo it still shows that it's reading from the default. Is there an apache or php setting that needs to be changed to allow it to read my php.ini? Using PHP Version 5.1.6 and Apache/2.2.3
If your host has locked the
If your host has locked the system down properly, there isn't much you can do to subvert it. You might need to find a new host?
I think he is willing to
I think he is willing to make exceptions like allow .htaccess or php.ini but more or less may not know how. At least I don't think... I can't change hosts either; we run a MUD from there, just bought a domain and can't really afford to change our host. Is there a way to give a certain directory different permissions or rights that would allow us to disable?
If not my planB is one of the two: Either get info on disabling the register_global check on install or install on my dev server then copy/paste on production and import the database. Are there any drawbacks to this? Will Drupal run with register_globals enabled? And if so can someone link or provide detailed information on disabling the check that would be most helpful.
**Fyi - this isn't a hosting company, it's an individual running from a personal server in his home/office I believe. We dont expect much traffic but want a presence and he is providing that for very minimal to no cost.**
Well in that case, all you
Well in that case, all you need to do is find php.ini and change register_globals to "Off", then restart Apache.
It should be in /etc or /etc/httpd somewhere.
This works great. Thanks
This works great.
Thanks