Page 1 of 1
safe_mode hell
Posted: Thu Jan 04, 2007 9:03 am
by recluse8912
I'm having an issue with safe_mode which is causing me to loose my mind. It will not disable locally. I have turned it off in 'php.ini'. I added the line 'php_admin_flag safe_mode Off' in my httpd.conf, and i've even disabled it via Plesk, and for some reason, after restarting apache, it continues to say it's 'on' locally. I will be forever greatful if someone can help me.
Posted: Thu Jan 04, 2007 10:56 am
by feyd
Are you sure you're editing the correct php.ini? Are there other ini files parsed that need checking?
phpinfo() can fill you in on those details.
What sort of problems are you encountering that you wish to turn off safe_mode?
Posted: Thu Jan 04, 2007 12:23 pm
by recluse8912
I've check the phpinfo() and it's showing the correct php.ini file, which turns out to be the only php.ini file on the server. That doesn't seem to be the issue though because when I turn it off via php.ini, it's off, but only the 'Master Value' is off. For some reason, the 'Local Value' remains on.
Posted: Thu Jan 04, 2007 12:34 pm
by feyd
That would suggest an htaccess or the httpd.conf file (or another conf file being parsed) has a directive turning it on. If memory serves htaccess files aren't allowed to alter it, but <Directory> sections may I think.
Posted: Thu Jan 04, 2007 12:51 pm
by recluse8912
i just found the file that was causing the problem:
/httpd/conf.d/zz010_psa_httpd.conf
i'm not quite sure why it's referencing that, but that was the problem. thanks for the replies.
Posted: Thu Jan 04, 2007 12:54 pm
by feyd
Interesting. I'm glad you found it.