Frequently Asked Questions

How do I customize Script Dir on my server running Parallels Plesk Panel?

Print this Article
Comment on this Article
Last Updated: May 12, 2010 10:07 AM

Some of the information in this article is advanced material we make available as a courtesy. Please be advised that you are responsible for properly following the procedures below. Customer Support cannot assist with these topics.

Parallels Plesk Panelconfigures the httpd.include file for each domain for overall site security. As such, it enables the open_basedir directive for PHP, so that a script / site can only access files located in the /path/to/vhosts/domain.tld/httpdocs and /tmp directories.

To overcome this setting, the you need to create a vhost.conf file in your /path/to/vhosts/domain.tld/conf directory, and enter the following lines:

<Directory /home/httpd/vhosts/domainname.com/httpdocs> php_admin_value open_basedir "/home/httpd/vhosts/domainname.com/httpdocs:/tmp:/any/other/locations:/they/require" </Directory>

Once this is done, enter the following command:

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

This will update the main httpd.include file to include the new vhost.conf file, and will also gracefully restart the Web service, so the changes take effect.