My wordpress site started crashing. I don’t get any errors. It’s not a memory problem.
The service seems to be running fine even when it crashes:
sudo systemctl status php8.1-fpm
● php8.1-fpm.service - The PHP 8.1 FastCGI Process Manager
Loaded: loaded (/lib/systemd/system/php8.1-fpm.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2024-09-24 15:31:28 UTC; 1h 8min ago
Docs: man:php-fpm8.1(8)
Process: 58603 ExecStartPost=/usr/lib/php/php-fpm-socket-helper install /run/php/php-fpm.sock /etc/php/8.1/fpm/pool.d/www.conf 81 (code=exited, status=0/SUCCESS)
I have to restart the server to get it back up.
sudo systemctl restart php8.1-fpm
I have checked all of the system logs, php logs and the only one that seems to have something that happens at the time of the crash is var/log/alternatives/log
Which has at exact time of the crash:
update-alternatives 2024-09-22 10:41:07: run with --quiet --install /run/php/php-fpm.sock php-fpm.sock /run/php/php8.1-fpm.sock 81
I think it comes from system
cat /lib/systemd/system/php8.1-fpm.service
[Service]
Type=notify
ExecStart=/usr/sbin/php-fpm8.1 --nodaemonize --fpm-config /etc/php/8.1/fpm/php-fpm.conf
ExecStartPost=-/usr/lib/php/php-fpm-socket-helper install /run/php/php-fpm.sock /etc/php/8.1/fpm/pool.d/www.conf 81
This started happening 2 weeks ago, not sure why or how to address it?
Any ideas would be welcome, thank you
1