Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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/aerosoftware.net/httpdocs/ on a http://aerosoftware.net/ 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

3 Answers 3

/var/www/vhosts/aerosoftware.net/httpdocs/ 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 aerosoftware.net 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: aerosoftware.net/phpinfo.php –  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

 
discard

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.