Booser Empowering your life

14May/100

Disable open_basedir in Plesk

Disable open_basedir in Plesk

This explanation tells you how to disable open_basedir in plesk without breaking/commenting your current httpd.conf basedir lines.

Create a new file, called vhost.conf
This file will include anything you want to disable from httpd.conf main config from your virtual host.

touch /var/www/vhosts/yourdomain.com/conf/vhost.conf

Now we edit the file and we add the following,

/var/www/vhosts/yourdomain.com/conf/vhost.conf
<directory /var/www/vhosts/yourdomain.extn/httpdocs>
php_admin_flag engine on
php_admin_flag safe_mode off
php_admin_value open_basedir none
</directory>

Once you finish adding the mentioned lines, its time to reconfigure and restart the webserver config.

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

You should be done by now.

Link To This Page
1. Click inside the codebox
2. Right-Click then Copy
3. Paste the HTML code into your webpage
codebox

Incoming search terms: