Welcome to my blog!

Here I try to keep useful information about IT, mostly related to Web development and Linux stuff. Any comments or feedback that you might have will be much appreciated!

Thanks,
Tomi

Disabling PHP’s safe_mode on Plesk

Filed Under (PHP, Plesk) by admin on 17-01-2007

In Plesk, you can disable on a per-domain basis PHP’s safe_mode. Before doing this though, be advised that disabling safe_mode could lead to security risks for all of your domains on the server.

On the following steps, replace to your domain as needed.

To configure safe_mode usage, edit or create the file:
/home/httpd/vhosts//conf/vhost.conf

The contents of the file should be something like:
/httpdocs>
Options +FollowSymLinks

php_admin_flag safe_mode Off

Note that you can not edit /home/httpd/vhosts//conf/httpd.include as it overwritten by Plesk so all your changes would be lost if put there.

For the changes to take effect, you need to run the following:

/usr/local/psa/admin/sbin/websrvmng --reconfigure-vhost --vhost-name=

And then, reload Apache’s configuration with:
service httpd reload

Tested under Plesk 7.5.4.

Leave a Reply

You must be logged in to post a comment.