Plesk PHP open_basedir changes

To make a change to PHP for a site in Plesk, such as opening open_basedir, edit /var/www/vhosts/$domain/conf/vhost.conf. You would then add :

<Directory /var/www/vhosts/domain.com/httpdocs>
php_admin_value open_basedir “/var/www/vhosts/domain.com/httpdocs:/tmp:/THE_PATH_PHP_SCRIPT_TRIES_TO_ACCESS_TO”
</Directory>

After that, you will need to rebuild the apache configuration with the following command:

/usr/local/psa/admin/sbin/websrvmng -v -a

You can leave a response, or trackback from your own site.

Leave a Reply