• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    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.

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