Php safe mode off as standard

chielsen

Verified User
Joined
Jul 26, 2004
Messages
62
Now DA set safe mode on as a standard (even though the master value is off). I can manually set it off, but there must be a way to set it off standard.

Oh, and why is the open_basedir commented out? Is there a way to config this too?
 
there are 4 files namely virtual_host_* in /usr/local/directadmin/data/templates, copy it to "custom" directory. If old things exist, remove it.

uncomment the openbase_dir line of the 4 files and finally do a

echo "action=rewrite&value=httpd" >> /usr/local/directadmin/data/task.queue
 
Ok, I see this:

php_admin_flag safe_mode |SAFE_MODE|

So, somewhere there is a config saying what |SAFE_MODE| is as standard value...

I want to know where
 
You can set globally inside php.ini, and the line you saw is per domain setting.

You may also turn on/off safe mode by setting all user the same value using the line you saw.
 
I believe you can set the default value for php safemode in the directadmin conf file.

/usr/local/directadmin/conf/directadmin.conf

There is an option "safemode=ON"
Just set it to OFF and all new domains created should have php safemode off
;)
 
What version of DA are you using. I did some testing and that is a valid option, if I set it to OFF in my conf and restart DA, any new domains I create have safe mode disabled so try adding it to your directadmin.conf file and restart DA and create a test domain to see if it worked.

Code:
safemode=OFF
 
I'm using the latest version of DA.
The default of safemode is off
I tried to assign "safemode=on" in the directadmin.conf
but it got no function.
Please help.
Thanks.
 
Did you restart directadmin after you made then change? And you do realise that it will not change the setting on existing domains, only the default settings for newly added domains ;)
 
jeffery said:
there are 4 files namely virtual_host_* in /usr/local/directadmin/data/templates, copy it to "custom" directory. If old things exist, remove it.

uncomment the openbase_dir line of the 4 files and finally do a

echo "action=rewrite&value=httpd" >> /usr/local/directadmin/data/task.queue
I just wanted to thank you for your contribution (and you too jmstacey, nice to know that's a directadmin.conf option). Did this and it worked perfectly. I really like this CP. Things just work. Refreshing coming from Ensim. :)

Brian
 
Curtis said:
I'm using the latest version of DA.
The default of safemode is off
I tried to assign "safemode=on" in the directadmin.conf
but it got no function.
Please help.
Thanks.

Same to me. I cannot get to work phpsafe_mode ON por default...
 
outpernet said:
Same to me. I cannot get to work phpsafe_mode ON por default...
If you put this line:
Code:
safemode=ON
...in your directadmin.conf file, *new domains* will be created with safe mode ON. This doesn't affect your existing domains. Perhpas if you use the 'echo "action=rewrite&value=httpd" >> /usr/local/directadmin/data/task.queue' command above, it will rewrite your current domain with safe mode ON (not sure though as I haven't tried it).

Brian
 
Did you restart DirectAdmin?

The following will work with either FreeBSD or with Linux:

/etc/rc.d/init.d/directadmin restart

Jeff
 
Back
Top