Hi all. I'm attempting to change some php.ini settings (specifically the include_path) for a number of virtual hosts running off the same machine.

Here's what I've got in my httpd.conf:

[pre]<VirtualHost ###.###.##.###>
<IfModule mod_php4.c>
php_value include_path ".:/usr/local/lib/php:/path/to/cmsdev.unbc.ca/html"
</IfModule>
ServerAdmin cms@unbc.ca
DocumentRoot /path/to/cmsdev.unbc.ca/html
ServerName cmsdev.unbc.ca
ErrorLog /path/to/cmsdev.unbc.ca/logs/cmsdev.unbc.ca-error_log
CustomLog logs/dummy-host.example.com-access_log common
ErrorDocument 403 /403.php
ErrorDocument 404 /404.php
</VirtualHost>[/pre]

I've got three sites running off this machine, and I've set up each virtualhost entry as above.

However the changes to the include path are not taking effect.

I've restarted apache, so I can't see the problem other than I'm doing something explicitly wrong here.

Can anyone shed any light on this?

Cheers and thanks in advance,
Pablo

    Have you got the <IfModule mod_php4.c> statement mentioned anywhere else in httpd.conf (outside of the virtualhost statements)? If so, apache could be taking heed from that statement and ignoring the virtualhost statements.

      Hi Jonathen. I just checked and the only place it's mentioned is in the virtual host statements.

      I also tried setting up an .htaccess file in the webroot of each virtual host and setting it there, but had no luck.

      ANy other ideas?

      Cheers and TIA,
      Pablo

        Write a Reply...