-
Notifications
You must be signed in to change notification settings - Fork 8k
Description
Description
Description
I've been facing this issue for a while and I couldn't find any luck searching on the internet so I'm open a bug report here. My server is installed with PHP 8.2.5 and using PHP-FPM to serve a WordPress site. During operation, there are two types of FPM issues that I usually see:
-
Master process is killed (checked with
ps -ef | grep php-fpm
) while all the child processes still running, which then leads to the502 bad gateway
response from Nginx on some pages that are rendered from PHP file. When this happens, I could restart PHP-FPM withphp-fpm restart
because I will receiveERROR: unable to bind listening socket for address '127.0.0.1:9000': Address already in use (98)
. The only way is to kill all child processes then start FPM again. -
Whole PHP-FPM processes including master and children are all terminated. In this case, I could restart using
php-fpm restart
.
In both case, when I check FPM status, they both give me the php-fpm is dead but pid file exists
. The problem is, when PHP-FPM master process is killed (or when PHP-FPM processes are all dead, which means there's also no master process), no error message gets printed to my php_error log file. I couldn't even find any related error message using journalctl
.
The issue happens once in a while (for example after 1 or 2 months of operating my site), and my site doesn't really have a high traffic.
PHP Version
PHP 8.2.5
Operating System
No response