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!

Change php-fpm setting from ondemand to dynamic

Discussion in 'EasyApache' started by devinh, May 13, 2019.

Tags:
  1. devinh

    devinh Registered

    Joined:
    Sep 22, 2018
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    India
    cPanel Access Level:
    Root Administrator
    I would like to change some php-fpm master process config
    cpanel version: v78.0.23
    I created new file system.yaml in /var/cpanel/ApachePHPFPM and placed following entries

    Code:
    ---
    pm: dynamic
    pm_start_servers = 4
    pm_min_spare_servers = 4
    pm_max_spare_servers = 8
    and recompiled using /scripts/php_fpm_config --rebuild
    but its failed, can any one pls explain valid method to change master values in fpm
     
    #1 devinh, May 13, 2019
    Last edited by a moderator: May 13, 2019
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,335
    Likes Received:
    2,162
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @devinh,

    The "pm" key is a PHP-FPM Pool directive. Pool directives are configured in the following locations:

    Defaults: /var/cpanel/ApachePHPFPM/system_pool_defaults.yaml
    Individual Domains: /var/cpanel/userdata/$username/$domain.tld.php-fpm.yaml

    You can read more about how to modify PHP-FPM configuration files on the following post:

    SOLVED - How-To Modify PHP-FPM Configuration Directives in EasyApache 4

    Let me know if this information helps.

    Thank you.
     
    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