View Full Version : Php safe mode off as standard
chielsen
07-30-2004, 06:03 PM
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?
jeffery
07-30-2004, 10:24 PM
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
chielsen
07-31-2004, 07:22 AM
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
jeffery
07-31-2004, 07:29 AM
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.
jmstacey
07-31-2004, 09:27 PM
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
;)
chielsen
08-01-2004, 06:56 AM
There is no safemode= option in my config
jmstacey
08-01-2004, 05:57 PM
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.
safemode=OFF
Curtis
11-06-2004, 09:00 PM
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.
jmstacey
11-06-2004, 11:54 PM
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 ;)
Brian S
11-11-2004, 08:41 AM
Originally posted by jeffery
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
outpernet
11-15-2004, 11:13 AM
Originally posted by Curtis
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...
Brian S
11-15-2004, 04:35 PM
Originally posted by outpernet
Same to me. I cannot get to work phpsafe_mode ON por default... If you put this line:
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
outpernet
11-15-2004, 04:38 PM
i tried that..mmm. i will try again
nobaloney
11-15-2004, 06:02 PM
Did you restart DirectAdmin?
The following will work with either FreeBSD or with Linux:
/etc/rc.d/init.d/directadmin restart
Jeff
Powered by vBulletin™ Version 4.0.4 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.