Skip to content

PHP8.2.5-FPM automatically terminated/crashed #16459

@cohekoma

Description

@cohekoma

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:

  1. Master process is killed (checked with ps -ef | grep php-fpm) while all the child processes still running, which then leads to the 502 bad gateway response from Nginx on some pages that are rendered from PHP file. When this happens, I could restart PHP-FPM with php-fpm restart because I will receive ERROR: 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.

  2. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions