Enabling Safe Mode [Is itok]

Aziz

Verified User
Joined
Oct 4, 2004
Messages
125
Hello guys,

I need to be able to communicate between PHP and korn shell to excute ONLY one command "openssl password -crypt PASSWORD" and insert it into a text file.

If a dedicate a domain name just for that operation (only 1 page) which the other site without PHP safemode will communicate with and edit that file.

Will this give any security risks to the server, keeping in mind no other domains have safemode enabled.

Appreciate any sugessionts and comments,

Peace,
 
If you can setup the script so it's not web accessible and run by root (cronjob), you can overide the php.ini with a custom one that has safemode turned off.
 
jmstacey said:
If you can setup the script so it's not web accessible and run by root (cronjob), you can overide the php.ini with a custom one that has safemode turned off.

One thing I dont get, directadmin has a safemode on/off for every account.. Does that mean they have a php.ini for each account, or are using htaccess to overide it?

Peace,
 
Aziz said:
One thing I dont get, directadmin has a safemode on/off for every account.. Does that mean they have a php.ini for each account, or are using htaccess to overide it?

Peace,

It puts php_value in the virtualhost httpd.conf
 
Back
Top