How to enable open_basedir for particular domain in plesk

SSH into your Plesk machine as “root” and go to the conf directory for the domain.
Create a “vhost.conf” file in:

/var/www/vhosts/<domain name>/conf/

[wpfmb type=’success’ theme=2]<Directory /var/www/vhosts/<domain name>/httpdocs>
php_admin_value safe_mode on
php_admin_value open_basedir none
</Directory>[/wpfmb]
Rebuild the domain configs for the particular host via::–

/usr/local/psa/admin/sbin/websrvmng -u --vhost-name=<domain name>

or rebuild all via :

/usr/local/psa/admin/sbin/websrvmng -a
service httpd reload

Done.
[wpfmb type=’info’ theme=2]If you don’t know how to run backup on plesk you can check here[/wpfmb]

Leave a Reply

Your email address will not be published. Required fields are marked *