Changing the open_basedir with Plesk Linux

When needing to allow a less restrictive basedir setting in Plesk for a domain you could modify the sites vhost.conf file normally found or created in /var/www/vhosts/ with something like:

<Directory /var/www/vhosts/>
php_admin_value open_basedir "/var/www/vhosts/"

Then run:

/usr/local/psa/admin/bin/websrvmng –reconfigure-vhost –

Or to disable open_basedir you could put in:??

php_admin_value open_basedir none

Leave a Reply

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