Frequently Asked Questions

Help Center Search

How do I Customize Script Dir on my Virtual Dedicated/Dedicated Hosting Plesk Servers?

Print this Article
Comment on this Article
Last Updated: December 11, 2007 2:15 PM

Plesk configures 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.