Skip to main content

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

Comments

3 comments

  • cPanelMichael
    Hello, You can find examples of how to make that change on the following threads: MultiPHP INI Editor Values Not Saved for PHP-FPM Sites SOLVED - php-fpm config Thank you.
    0
  • tony_ssi
    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.
    0
  • cPanelMichael
    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.
    0

Please sign in to leave a comment.