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

I have a common framework that resides in /var/www/fw/trunk path, and also have a virtual host that resides in /var/www/vhosts/ on a domain.

I changed php.ini include path to include_path='.:/var/www/fw/trunk' but still I get an include error. Why is that?

share|improve this question
Did you restart Apache after you edited php.ini? – Ben Pilbrow Jul 25 '10 at 10:16
Yes, several times... – dfilkovi Jul 25 '10 at 10:19

/var/www/vhosts/ looks like the standard layout of a Plesk box. Try creating a .htaccess file inside your httpdocs directory with the following in it.

php_value include_path ".:/var/www/fw/trunk"

I'd also recommend creating a phpinfo.php file with

<? phpinfo(); ?>

in it so that you can check that the include_path value has been changed.

share|improve this answer
You can check that will show you an error and also will show you that it has right include path (include_path='.:/var/www/fw/trunk'), but you are right, it's a plesk box. – dfilkovi Jul 25 '10 at 12:18
Also here is the phpinfo path so you can view it: – dfilkovi Jul 25 '10 at 12:21

Be aware, that there may be two or more php.ini files. For example, on my OpenSuse machine there is two of them, one for apache environment, and one generic.

share|improve this answer

I found a solution, it was this thing I had to put in a config file for that virutal host:

php_admin_value safe_mode off

php_admin_value open_basedir none

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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