PDA

View Full Version : Enabling Safe Mode [Is itok]



Aziz
11-10-2005, 11:59 AM
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,

jmstacey
11-10-2005, 05:31 PM
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.

Aziz
11-10-2005, 06:13 PM
Originally posted by jmstacey
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,

MartijnHOS
11-23-2005, 02:25 AM
Originally posted by Aziz
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