PHP safe mode Not working ?

ikorpershoek

Verified User
Joined
Jan 15, 2005
Messages
5
Location
Netherlands
Hi there

i'm a newbie on DA and have a question

It looks like my PHP safe mode switch isn't working.
Whatever I do On or OFF when i run phpinfo() and look ad the safe_mode line it shows localvalue ON mastervalue OFF

I like to install Mambo and Safe mode needs to be Off

what do i have to do to switch PHP safe mode of for this domain.


Ies
 
Safemode is on by default in the php.ini which is where the phpinfo() loads it's information from I think. So any per domain/account settings you have will most likely not show up in phpinfo().

You should be able to toggle safemode on or off in the php safemode page on the admin level. The best way to test if it's working is installing your software and if it gives you errors because php safemode is still on, then you know it's not working
;)
 
Thanks

That is what I did.
I was installing Mambo.
When you start there's a info page on the status of the machine and the requirements of Mambo.

Mambo detected PHP safemode ON.
The status in DA was OFF
To be sure I turned it ON and OFF.
Mabo still detected ON.
PhPinfo(0) had the same info

So I stopped late last night.
This morning I tried it again and everything was OFF
Both in Mambo and phpinfo(0)

Could it be there's a time delay or maybe a process that has a interval time ???


Sorry for my poor english.
 
So everything is working now?

There's no time delay that I know of. And I don't think any services need to be restarted. Apache might, to reload the httpd.conf with updated php settings, but I'm not sure on that one.
If it happens again, and it seems like the value doesn't change for a domain you could try restarting apache just to see if that's it.

What Operating System and version of DirectAdmin are you using?
 
My operating system is fedora 2.0

Direct Admin

Compiled for Redhat 9.0
Server Version 1.23.3
Current Available Version 1.233000
Last Updated Thu Jan 13 12:22:10 2005

Installation was done by my datacenter
 
Maybe DA has a little bug in the PHP Safe_Mode settings page.

I also use the safemode=ON in the /usr/local/directadmin/directadmin.conf file (thanks jmstacey for the tip, I saw in another topic).

However, I needed to change safe_mode OFF for one of my domains. It seems DA forgot to run this:
Code:
echo "action=rewrite&value=httpd" >> /usr/local/directadmin/data/task.queue
...to trigger the rewrite of the httpd.conf files of the domains.

What I did to monitor the change was, I created a phpinfo() file in that domain and pointed my browser to it. I was refreshing that page to see if the safe_mode settings changed or not.

I ended up restarting Apache to see the change.
 
ikorpershoek said:
thanks markus

I can try this the next time.


by the way I can't find the task.queue
There's a nice explanation on how the DA Task Queue works here:
http://www.directadmin.com/technotes.html

In my case, I believe DA rewrote the httpd.conf files, but forgot to restart apache. I don't remember very well, but I believe I just restarted apache to solve my problem.
 
Back
Top