syntex to change pm.* value in php-fpm's conf file

uadm

Well-Known Member
May 19, 2003
97
0
156
What is the syntax in /var/cpanel/ApachePHPFPM/system_pool_defaults.yaml

to change the value of the following:

pm.max_children = 5
pm.max_requests = 20
pm.max_spare_servers = 5
pm.min_spare_servers = 1
pm.process_idle_timeout = 10
pm.start_servers = 0

Thank you.
 

uadm

Well-Known Member
May 19, 2003
97
0
156
for reference:

Code:
[[email protected] ~]# grep pm_ /var/cpanel/ApachePHPFPM/system_pool_defaults.yaml
pm_max_children: { name: 'pm.max_children', value: 20 }
[[email protected] ~]# grep child /opt/cpanel/ea-php56/root/etc/php-fpm.d/domain.co.il.conf
pm.max_children = 5
[[email protected] ~]# /scripts/php_fpm_config --rebuild --domain=domain.co.il
info [php_fpm_config] Rebuilding ...
info [php_fpm_config] Dequeued the following domains
info [php_fpm_config] Dequeued domain.co.il
info [php_fpm_config] rebuild_files: working on domain (domain.co.il)
info [php_fpm_config] Rebuilding apache conf
info [php_fpm_config] Rebuild Complete
[[email protected] ~]# grep child /opt/cpanel/ea-php56/root/etc/php-fpm.d/domain.co.il.conf
pm.max_children = 5