Linux

Warning: open_basedir restriction in effect – Plesk 10

To solve this issue under plesk do the following:

1. Create file vhost.conf in /var/www/vhosts/example.com/conf/ if it doesn’t exist already.

2. Append the following to vhost.conf:

<Directory /var/www/vhosts/example.com/httpdocs>
    php_admin_value open_basedir "/var/www/vhosts/example.com/httpdocs/:/path/to/new/dir/:/tmp/"
</Directory>

3. Update Plesk’s configuration with:

/usr/local/psa/admin/sbin/httpdmng --reconfigure-all

or

/usr/local/psa/admin/sbin/httpdmng --reconfigure-domain example.com