Symptoms
When clicking the Check Email button in cPanel, the login gets stuck spinning, similar to the screenshot below.
An entry similar to the following is also present in /usr/local/cpanel/logs/php-fpm/error.log:
CONFIG_TEXT: WARNING: [pool user_username] server reached max_children setting (25), consider raising it
Cause
This issue occurs when the cpanel_php_fpm service hits the max_children limit. This limit can be temporarily increased per user, or globally. The limit increase is temporary as changes to the cPanel user's configuration file will be lost upon reboot, and changes made to the global template file will be overwritten when cPanel updates.
Resolution
- Log in to the server via SSH or WHM's Terminal as the
rootuser -
Open the
/var/cpanel/php-fpm.d/USERNAME.conffile in your preferred text editor:# nano /var/cpanel/php-fpm.d/$username.conf
Note: "USERNAME" must be replaced with the username of the cPanel account
- Set pm.max_children to a value greater than 25
- Save the changes and exit the text editor
-
Restart the cPanel PHP-FPM service to apply the changes:
# /scripts/restartsrv_cpanel_php_fpm
- Log in to the server via SSH or WHM's Terminal as the
rootuser -
Open the
/usr/local/cpanel/src/templates/cpanel_php_fpm/user.defaultfile in your preferred text editor:# nano /usr/local/cpanel/src/templates/cpanel_php_fpm/user.default
- Set pm.max_children to a value greater than 25
- Save the changes and exit the text editor
-
Restart the cPanel PHP-FPM service to apply the changes:
# /scripts/restartsrv_cpanel_php_fpm
Comments
0 comments
Article is closed for comments.