|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
How Do I Customize Script Dir On My Virtual Dedicated/Dedicated Hosting Plesk ServersPlesk 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. Comments, Questions & Reviews
Comments is currently disabled for this article! Related Articles and Readings
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. |
Categories
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||

