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 default values in /var/cpanel/php-fpm.d/username.conf

Discussion in 'General Discussion' started by tony_ssi, Nov 23, 2017.

Tags:
  1. tony_ssi

    tony_ssi Member

    Joined:
    Nov 3, 2017
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Varna, Bulgaria
    cPanel Access Level:
    DataCenter Provider
    Hello,

    What is the correct way to update the values defined in /var/cpanel/php-fpm.d/username.conf?

    We have some accounts with heavy webmail activity.
    pm.max_children=25 is too low for them.

    Thanks
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

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

    tony_ssi Member

    Joined:
    Nov 3, 2017
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    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.
     
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,802
    Likes Received:
    1,896
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    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