Portal Home > Knowledgebase > Articles Database > safe_mode off for a single domain


safe_mode off for a single domain




Posted by pankya, 05-07-2013, 03:34 AM
I have plesk 9.5 with me. I want to switch off safe_mode for a single domain. I have copied the php.ini to httpdocs but it still shows the server configuration when I check. Any suggestion please ?????

Posted by net, 05-07-2013, 03:38 AM
Moved > Hosting Security and Technology .

Posted by zoid, 05-07-2013, 03:40 AM
First of, I would recommend not to use safe mode. It is already deprecated since the previous version and the current version does not support it anymore at all. To answer your question, how is PHP integrated? In case of Apache and mod_php you would need to change it in the Apache configuration.

Posted by aiderpro, 05-07-2013, 03:42 AM
Hello, Go to the control panel for the specific domain where you want to turn off safe mode, click on the Websites & Domains tab. At the bottom will be a listing of the domain names, click on an individual name to see it's hosting settings. There should be a checkbox for PHP, and another one for whether or not to use safe mode. Warm Regards AiderPro Technologies http://aiderpro.com

Posted by zoid, 05-07-2013, 03:50 AM
I guess my lack of knowledge in control panels just became obvious

Posted by aiderpro, 05-07-2013, 03:53 AM
Hello, You can set this by following steps also. find / -name php.ini /etc/php.ini /usr/local/psa/admin/conf/php.ini Search for "safe_mode" in php.ini file. and edit it as "safe_mode = Off" Then restart Apache. Warm Regards AiderPro Technologies http://aiderpro.com

Posted by pankya, 05-07-2013, 03:55 AM
Ok will check and let you know the result

Posted by pankya, 05-07-2013, 03:57 AM
But this will be done server wide and I want it just for a single domain

Posted by tuxandrew, 05-08-2013, 01:36 AM
Hey, Usually the main configuration file location is /etc/php.ini. Please try this, It is possible to set up php.ini per-domain for each domain which is running PHP scripts as a CGI of FastCGI application. In this case it should be located in /var/www/vhost/domain/etc/ directory to be recognized by PHP interpreter.



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
Form Processing in PHP (Views: 710)
prevent DDOS how (Views: 678)


Language: