• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

vhost.conf content not available

gijsbert

Basic Pleskian
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
 
The custom php.ini configurations for each domain is located at:

For Plesk version 10.3 - 11.0:
/var/www/vhosts/DOMAIN.COM/etc/php.ini
For Plesk version 11.5:
/var/www/vhosts/system/DOMAIN.COM/etc/php.ini

Please see the documentation for it, depending on your version:


You might as well like the Parallels KB - article:

How do I enable custom php.ini for particular virtual host? ( KB - article 111 697 )
 
Back
Top