I want to set the PHP include path to another directory. I tried putting this in an .htaccess file, but that didn't work. The only thing I see is the include path's I set in httpd.conf, but not the one I tried to add.
<IfModule mod_php5.c>
php_value include_path ".:/var/www/mywebsite/"
</IfModule>
What am I doing wrong?
I did a2enmod mod_php5, but it was already running, so I suppose PHP5 is already running as Apache module.
[EDIT] In my vhost config I have this:
<Directory ~ "^/var/www/.*">
AllowOverride All
Options FollowSymLinks -Indexes -MultiViews
php_value include_path ".:./include:./.include/:/var/www/.include/:/var/www/"
</Directory>
More info (phpinfo()):
Loaded Modules core mod_log_config mod_logio prefork http_core mod_so mod_alias mod_auth_basic mod_auth_mysql mod_authn_file mod_authz_default mod_authz_groupfile mod_authz_host mod_authz_user mod_autoindex mod_cgi mod_deflate mod_dir mod_env mod_mime mod_negotiation mod_php5 mod_reqtimeout mod_rewrite mod_setenvif mod_status
include_path .:./include:./.include/:/var/www/.include/:/var/www/ .:/usr/share/php:/usr/share/pear
Regards, Kevin
phpinfo()is your friend.phpinfo()soon ;).set_include_path()to modifyinclude_pathat runtime..htaccessline ;)..htaccessreside in document root?