Web Hosting Resources, Forum, FAQ, Directory
Login
Username:

Password:


Lost Password?

Register now!
Main Menu
Search
Hosting Article :: Virtual Dedicated Windows

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


PHP


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.

<< Connecting to MySQL Accessing Your Plesk Web Stats >>
Trackback
  • URL: http://www.powerhoster.com/domainhosting/modules/article/view.article.php/c9/1317
  • Trackback: http://www.powerhoster.com/domainhosting/modules/article/trackback.php/1317
Rate
10987654321
API: Toolkit PM Email PDF Bookmark Print | RSS | RDF | ATOM
Copyright© Jane83 & Powerhoster.com
The comments are owned by the poster. We aren't responsible for their content.

 Re: ClimateScape and FireScape

Posted: 2011/12/6 10:16  Updated: 2011/12/6 10:16

beaujon


Joined: 2011/12/1
From:
Posts: 65353
free shipping Ugg boots is actually a special boots with sheepskin. ugg boots clearance Ugg Boots Sale originated in Australia uggs , free shipping today's trademark for the business is the United States of America. Escalating worldwide demand adds its selection and new types causal boots uggs boots cheap .
© 2001-2007 Power Hoster