Changing php directives inside apache config file
| From: | Pablo Gosse | Date: | Mon, 24 Nov 2003 22:52:29 +0000 |
| Subject: | Changing php directives inside apache config file | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-170830@lists.php.net to get a copy of this message | ||
Hi all. I'm trying to alter the include_path for three different sites
running on the same machine, and I do not want to use ini_set in each
file.
Here's what I've set up for each virtual host inside my httpd.conf file:
<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>
However even after restarting apache the include_path is not being set
correctly.
Can anyone give me any advice as to where I'm going wrong?
Cheers and TIA,
Pablo