Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My webserver is running Plesk and for each new site a vhost.conf file is created that has some include_path and open_basedir settings in it:

    <Directory /var/www/vhosts/>
php_admin_value open_basedir "/usr/share/pear:/var/www/vhosts/"
php_value include_path "/usr/share/pear:/var/www/vhosts/"

Is it possible to add another for this site and have the include_path and open_basedir setting change for a subdirectory like this:

    <Directory /var/www/vhosts/>
php_admin_value open_basedir "/usr/share/pear:/var/www/vhosts/"
php_value include_path "/usr/share/pear:/var/www/vhosts/"
share|improve this question

closed as off-topic by HopelessN00b Mar 3 '15 at 7:02

  • This question does not appear to be about server, networking, or related infrastructure administration within the scope defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

up vote 1 down vote accepted

If you meant .../ file - these files are solely for customization, so you can include there whatever other settings you like.

But I guess you mean the autogenerated config of Plesk. If so, there would be 2 paths to add the lines you want

  1. if you are on Plesk 11.0 and /var/www/vhosts/ has a site assigned, then you can tune open_basedir and include_path in PHP settings of the site
  2. if there are no site assigned, but you are on Plesk 10+, you can modify PHP templates used for the config generation. Read more about Changing Virtual Hosts Settings Using Configuration Templates
share|improve this answer
Thanks, it worked out changing the domain's vhost.conf. But thanks for the tip and link! – tvgemert Nov 13 '12 at 13:38

Not the answer you're looking for? Browse other questions tagged or ask your own question.