Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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

Discussion in 'EasyApache' started by uadm, Jun 27, 2018.

Tags:
  1. uadm

    uadm Well-Known Member

    Joined:
    May 19, 2003
    Messages:
    91
    Likes Received:
    0
    Trophy Points:
    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.
     
  2. uadm

    uadm Well-Known Member

    Joined:
    May 19, 2003
    Messages:
    91
    Likes Received:
    0
    Trophy Points:
    156
    for reference:

    Code:
    [root@server ~]# grep pm_ /var/cpanel/ApachePHPFPM/system_pool_defaults.yaml
    pm_max_children: { name: 'pm.max_children', value: 20 }
    [root@beeblio-webserver ~]# grep child /opt/cpanel/ea-php56/root/etc/php-fpm.d/domain.co.il.conf
    pm.max_children = 5
    [root@beeblio-webserver ~]# /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
    [root@beeblio-webserver ~]# grep child /opt/cpanel/ea-php56/root/etc/php-fpm.d/domain.co.il.conf
    pm.max_children = 5
    
     
  3. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,749
    Likes Received:
    1,884
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice