How to disable Plesk open_basedir restriction in effect

Some applications require open_basedir to be “loosened” a little, if you are installing an application such as ClickCart Pro then the open_basedir will need to be changed so that the installation can create the required sub directories and then complete.

Let’s assume your domain name is (no such luck, I know!)

# vi /var/www/vhosts/

Add the following lines:

<Directory /var/www/vhosts/>
php_admin_value open_basedir “/var/www/vhosts/”
php_admin_flag safe_mode off

Now we need to rebuild the apache configuration:

# /usr/local/psa/admin/sbin/websrvmng -u –

Job done, your open_basdir setting has been moved up one level (from /httpdocs to /) within your domain name sub folder.