Change default values in /var/cpanel/php-fpm.d/username.conf

tony_ssi

Member
Nov 3, 2017
5
0
1
Varna, Bulgaria
cPanel Access Level
DataCenter Provider
Hi Michael,

The examples provided are for user websites: apache_php_fpm

Our issue is with the cpanel user services (cpanel, webmail etc..) which are being managed by the PHP-FPM service for cPanel Daemons (cpanel_php_fpm service)
All values are stored in /var/cpanel/php-fpm.d/username.conf, however when I change pm.max_children there - it reverts back to default value (pm.max_children = 25).
Disabling PHP-FPM service for cPanel Daemons in the Service Managers solves the issue - but we would like to use FPM there as well.

Hope this clarifies it.
Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
Hello,

I apologize for the misunderstanding. You can modify the individual configuration files within /var/cpanel/php-fpm.d/ as you mentioned, but it's not possible to configure a global default value for those files. There's a feature request open for this that you can vote for at:

Configure a global default value for php-fpm max_children for all accounts

Thank you.