admin管理员组

文章数量:1193751

A server of mine sits and resizes images for a living. It can live for days, weeks, or sometimes longer - but always eventually just mysteriously stops working, and all PHP scripts on the box are returned with a 503 error. At the time the thing crashes, it says in the logs:

[Fri Jan 24 01:19:48.216104 2025] [proxy_fcgi:error] [pid 789479:tid 789518] [client (snip).114.41:64368] AH01079: failed to make connection to backend: localhost
[Fri Jan 24 01:20:00.962347 2025] [proxy:error] [pid 580278:tid 580310] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php-fpm/www.sock (localhost:8000) failed
[Fri Jan 24 01:20:00.962378 2025] [proxy_fcgi:error] [pid 580278:tid 580310] [client (snip).114.28:29704] AH01079: failed to make connection to backend: localhost

I'm a little lost for where to go to understand what's going on. A reboot fixes it, and so does a restart of PHP-FPM, I think (but I normally go for the reboot).

It's a relatively standard Amazon Linux 3 box, with Apache and PHP on it.

(I actually don't know why it thinks its running a proxy; but, as I say, it can be fine for weeks without suddenly crashing).

Where should I be looking to learn more about why it's crashing?

本文标签: fastcgiHow can I work out why PHP FCGI is crashingStack Overflow