Home - Help & Support - Contact Us
    

How Do I Customize Script Dir On My Virtual Dedicated/Dedicated Hosting Plesk Servers

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.

Rated:NR/0 Votes
196 Views
More Articles From Plesk 7.5
More Articles From Plesk 7.5
Print Article
Print
Share |
Comments, Questions & Reviews

Comments is currently disabled for this article!
Related Articles and Readings
How do I Customize Script Dir on my Virtual Dedicated or Dedicated Hosting Plesk Servers?
Plesk configures the httpd.include file for each domain for overall site security. As such, it enables the open_basedir directive for ...
How do I update my max clients setting?
To update your max clients setting using SSH: Log on to your server. At the command line, type su - . ...
How do I update my max clients setting?
To update your max clients setting using SSH: Log on to your server. At the command line, type su - . ...
Opening a PSD file
PSD file is layered to easily modify the image file. It contains all the image sources for your web design ...
Unzipping Template Package
xOur templates are delivered in ZIP files. A ZIP file is a single compressed file that contains the complete set ...
The information provided in this article is for general information and/or the comments is the sole responsibility of their respective authors and does not necessarily reflect the opinion of zeronese.net does not endorse any article and/or comments published by our web users unless otherwise noted.