For some domain I like to add /usr/share/pear to the include_path using a vhost.conf file.
1) First of all I make sure that no Include line is added in the last_httpd.conf:
grep -R .conf /var/www/vhosts/system/<domain>/conf/last_httpd.conf | grep Include ==> no output
2) Now I make a vhost.conf with the following content:
<Directory /var/www/vhosts/<domain>/httpdocs>
php_admin_value open_basedir "/var/www/vhosts/<domain>/httpdocs:/usr/share/pear:/tmp"
php_admin_value include_path ".:/usr/share/pear"
</Directory>
3) Reconfigure the domain using /usr/local/psa/admin/sbin/httpdmng --reconfigure-domain <domain>
If I now check the last_httpd.conf, the file is included:
grep -R .conf /var/www/vhosts/system/<domain>/conf/last_httpd.conf | grep Include ==> results in the correct entry: Include "/var/www/vhosts/system/<domain>/conf/vhost.conf"
But when I finally check the include_path and the open_basedir using a simple phpinfo() the entries of my vhost.conf do not appear. Am I doing something wrong here?
Kind regards,
Gijsbert
1) First of all I make sure that no Include line is added in the last_httpd.conf:
grep -R .conf /var/www/vhosts/system/<domain>/conf/last_httpd.conf | grep Include ==> no output
2) Now I make a vhost.conf with the following content:
<Directory /var/www/vhosts/<domain>/httpdocs>
php_admin_value open_basedir "/var/www/vhosts/<domain>/httpdocs:/usr/share/pear:/tmp"
php_admin_value include_path ".:/usr/share/pear"
</Directory>
3) Reconfigure the domain using /usr/local/psa/admin/sbin/httpdmng --reconfigure-domain <domain>
If I now check the last_httpd.conf, the file is included:
grep -R .conf /var/www/vhosts/system/<domain>/conf/last_httpd.conf | grep Include ==> results in the correct entry: Include "/var/www/vhosts/system/<domain>/conf/vhost.conf"
But when I finally check the include_path and the open_basedir using a simple phpinfo() the entries of my vhost.conf do not appear. Am I doing something wrong here?
Kind regards,
Gijsbert