I am running Apache 1.3.27 and PHP 4.3.0 on Red Hat Linux. It appears that the include_path directive (for httpd.conf and php.ini) is behaving in a slightly unpredictable manner and I was wondering if someone could lend me a hand.
Basically, I'd like to have one include_path that is true for all my virtual hosts, so I set up php.ini to have...
include_path = ".:/home/httpd/include"
and then each virtual host to have...
php_value include_path ".:/home/httpd/web/domain_name/www/include"
What I've done is placed the file I would like to include in my global include path, /home/httpd/include. When I start my server with that path specified in php.ini but nothing in my vhost entries, the file is included just fine. When I add the domain-specific include path to httpd.conf under the virtual host and then restart the server, php can't find the file anymore (it must no longer be using the "global" include specified in php.ini and is only using the include dir specified in my vhost entry).
I'd like to avoid softlinking back to my global include dir if possible. Can someone tell me what I'm doing wrong or offer advice? Thanks.