safe_mode_exec_dir - where to set?

domecms

Verified User
Joined
Jan 8, 2005
Messages
21
hi..

i have safe_mode tuned on as the default at the admin level but i have clients who routinely need to run applications which require access to safe_mode_exec_dir. I need this exec_dir location to be different for each client.

How would i set this for each client AFTER the account is created? Would it be overwritten each time DA is restarted?
 
that configuration can also be set on a per virtualhost/account basis. Simply add the php tokens in the httpd.conf template and give all accounts a specific directory or you'll have to make the modifications by hand on a per account basis as needed.

However this kind of defeats the purpose of safe_mode since your won't be monitoring the files that are placed in there in realtime ;) so basically you'd be back at square one when using system() etc.
Just my opinion, but you might as well just turn safe_mode off for the accounts that need it.
 
Last edited:
jmstacey said:
that configuration can also be set on a per virtualhost/account basis. Simply add the php tokens in the httpd.conf template and give all accounts a specific directory or you'll have to make the modifications by hand on a per account basis as needed.

thanks.. i was able to edit the users's httpd.conf by hand.. but then found the Custom HTTPD Configurations tab in Admin level. Strange though, when i click on the domain that i just edited, i see my changes, but when i click save (whithout entering anything new in the top box) it overwrites my changes with what i must guess is the default DA httpd template. Hmmmm.. where is the DA httpd template that it's using?. i'm assuming i can just modify that using variable calls to user name and domain.


However this kind of defeats the purpose of safe_mode since your won't be monitoring the files that are placed in there in realtime ;) so basically you'd be back at square one when using system() etc.
Just my opinion, but you might as well just turn safe_mode off for the accounts that need it.

I know.. this is a single custom app provided by me and still kept outside of the clients ftp access.. i'm not a big fan of safe_mode, but figure i might as well keep it on in this case.
 
Back
Top