We've had issues with php-fpm becoming unresponsive in the past and have had to restart it. I'm trying to put a cron entry in place to restart php-fpm daily. My issue is that the service does not come back up from a stop:
# /etc/init.d/ea-php70-php-fpm restart
Stopping php-fpm: [FAILED]
Starting php-fpm: [01-Jun-2018 07:18:45] ERROR: failed to create new listening socket: socket(): Too many open files (24)
[01-Jun-2018 07:18:46] ERROR: FPM initialization failed
[FAILED]
# /scripts/restartsrv_apache_php_fpm
PHP-FPM Version 70 failed to start
However, when I go into WHM and restart the service there it works fine:
[Link Removed By Moderator - Please attach images directly to threads as attachments]
What is WHM/Cpanel doing differently that is successfully restarting the service?
# /etc/init.d/ea-php70-php-fpm restart
Stopping php-fpm: [FAILED]
Starting php-fpm: [01-Jun-2018 07:18:45] ERROR: failed to create new listening socket: socket(): Too many open files (24)
[01-Jun-2018 07:18:46] ERROR: FPM initialization failed
[FAILED]
# /scripts/restartsrv_apache_php_fpm
PHP-FPM Version 70 failed to start
However, when I go into WHM and restart the service there it works fine:
[Link Removed By Moderator - Please attach images directly to threads as attachments]
What is WHM/Cpanel doing differently that is successfully restarting the service?
Last edited by a moderator: