PHP FPM seems to stop responding? After a while

SYSTEM INFORMATION
OS type and version Rocky 9.4 LXC
Webmin version 2.111
Virtualmin version 7.10.0
Webserver version Apache 2.4.57, PHP-FPM 8.0.30, 7.4.33

[Tue Aug 06 12:16:49.136937 2024] [proxy:error] [pid 1017346:tid 1017429] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php-fpm/171399817375535.sock (*:80) failed
[Tue Aug 06 12:15:20.320596 2024] [proxy_fcgi:error] [pid 1017346:tid 1017489] [client 81.5.173.63:36202] AH01079: failed to make connection to backend: httpd-UDS

^^ from the apache error log of one of the sites on this server.

Reverse proxies unaffected, just PHP applications - namely in this case WordPress.

Happens after a while, corrected only by restarting PHP-FPM

Going to any webpage served during this time shows:

Service Unavailable

The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.

Whats does that mean compared to Rocky 9.4?

LXC container, instead of bare metal or normal VM. Shouldn’t be the contributing factor here as run many virtual min servers this way but mentioning it incase.

fpm is a service, does lxc run services differently?

not that im aware of.

have just noticed have a pending fpm package update. will update and see if it does it again…

try this command
systemctl status php80-php-fpm

root@vhost1:~# systemctl status php80-php-fpm

Unit php80-php-fpm.service could not be found.

so it has not restarted

it has from here on the virtual min page - see screenshot

Strange. You can use the restart icon to restart from your last screenshot.

yes thats what ive been doing.

I am having this same issue at this moment

does the /run/php-fpm/ directory exist? As my Rocky9 doesn’t have that directory.

Sock on my system is var

This is my settings it seems a bit different

According to the settings you sent there, do you have any issues?

I am also using Rockylinux 9. but this is a PHP 7.4

I encountered the same problem.

So you can see /run/php-fpm/ in the file manager. All people reporting the error are using the directory in the config.
How are you installing php versions, are you following the docs.

No I have not done this configuration.

Would there be something I would to do first before doing this when I have already multiple PHP versions?

Installing additional PHP versions
On RHEL, Alma, Rocky, Oracle, CentOS Stream and Fedora Linux
Install Remi repository
. /etc/os-release && repo_dir=$([ "$ID" = "fedora" ] && echo "fedora" || echo "enterprise") && dnf -y install "https://rpms.remirepo.net/$repo_dir/remi-release-$(rpm -E %$ID).rpm" && dnf clean all
Install PHP packages
dnf install php81-php-{cli,fpm,pdo,gd,mbstring,mysqlnd,opcache,curl,xml,zip}
Replace php81 with the desired PHP version, e.g., php83.
Check available PHP versions and extensions in the Remi Repository or use dnf search php.

This I did do

for php in $(scl list-collections 2>/dev/null | grep 'php' | sed 's/$/-php/') php; do for ext in curl intl; do sudo dnf -y install "${php}-${ext}"; done; done

This I did not do

It seems so far it is behaving after I ran that last command for the PHP extensions. Let us see if it happens on Monday. Thanks!