Since Panel 10.3, administrators can specify custom PHP settings individually for each domain (virtual host in Apache terms). The typical usage of this feature is to allocate certain resources (like RAM consumed by PHP) to a particular site or to allow some configuration changes to meet needs of a certain web app.
Server-Wide and Domain-Level PHP Settings
The resulting PHP configuration for each domain is defined on two levels: Server-wide and domain-level. The domain-level configuration is of higher priority and it overwrites the server-wide configuration. Here are our recommendations on changing PHP settings in Panel.
/etc/php.ini./var/www/vhosts/<domain_name>/conf/php.ini, where <domain_name> is the name of a corresponding domain.Important: The domain-level changes are not applied automatically. To make Panel start using the new settings, notify it from the GUI. For this, change the PHP support option to a different value, save it, and roll back to the original state. To reach PHP support, go to Websites & Domains and click the domain name, the subject of new PHP settings.
Verifying the Results of Domain-Level Configuration
When you apply settings from your custom file, Panel merges them from these sources:
cgi-bin directory./conf/ directory. They override the customer's settings.The result is put to /var/www/vhosts/<domain_name>/etc/php.ini for the further use. Use this file to verify that the results fit your expectations.
Changing PHP Settings of All New Domains
If you want to use custom PHP settings for all newly created websites, copy your custom php.ini file to the conf directory of a virtual host template. For more information on host templates, refer to the section Predefining Virtual Hosts for New Sites.