• The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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