• 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.

Custom templates and /var/www/vhosts/system/<domain>/etc/php.ini

KeithHyde

New Pleskian
Hoping someone can point me in the right direction.

When setting any custom PHP values the php.ini file is generated in /var/www/vhosts/system/<domain>/etc/php.ini

I am trying to set open_base none to allow PEAR. The service-plan settings are set to this and is fine until someone makes any custom changes and the php.ini is generated.

Where does Plesk build the php.ini from, so that I can override it. I did grep through all of the default templates and cannot find open_base settings specified in any of them.
 
If you have Ubuntu/Debian, these might be some settings, that you like:

{WEBSPACEROOT}{/}{:}{TMP}{/}:/usr/share/php:/usr/share/php5:/usr/share/perl:/usr/share/perl5:/usr/share/pear:/usr/share/psa-pear:/usr/bin/python

as well, you can set the same setting ( without the webspace and temp definitions ) to your custom "include_path". Be aware, that this line always starts with an " . " :

.:/usr/share/php:/usr/share/php5:/usr/share/perl:/usr/share/perl5:/usr/share/pear:/usr/share/psa-pear:/usr/bin/python

These custom settings can be set in the advanced tab of every domain / subdomain and is named: PHP Settings.

The Plesk documentation might guide you with the initial settings: Predefining Values for Customizable PHP Parameters ( Plesk 12 online documentation )
 
Back
Top