IT Hosting

Member
Jun 20, 2002
17
0
151
Is there any way *through WHM* to control safe mode? or do I have to do it &manually&?
 

moronhead

Well-Known Member
Aug 12, 2001
706
0
316
Turn safe mode on in php.ini. You can then turn it off and add open_basedir for each virtual account by modifying the new account creation script. If you leave safe mode off in php.ini and then use open_basedir, your server won't be safe as people can still access the dangerous PHP functions from a sub-domain.
 

SHSaeed

Well-Known Member
May 9, 2002
245
0
316
I wonder what file it is that creates the subdomains, and if it's possible to modify it the same way as the create account script add open_basedir to all new subdomains.