safe_mode hell

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
recluse8912
Forum Newbie
Posts: 4
Joined: Fri Nov 17, 2006 9:44 am

safe_mode hell

Post 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.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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?
recluse8912
Forum Newbie
Posts: 4
Joined: Fri Nov 17, 2006 9:44 am

Post 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.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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.
recluse8912
Forum Newbie
Posts: 4
Joined: Fri Nov 17, 2006 9:44 am

Post 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.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Interesting. I'm glad you found it.
Post Reply