503 Service Unavailable error for PHP pages

SYSTEM INFORMATION
OS type and version Debian Linux 12
Virtualmin version 7.30.8 Pro

This is a brand new setup on a Debian server. I’ve installed PHP 8.3 following the official documentation on the Virtualmin site, and updated all sites on my server to use PHP 8.3

When I browse to any site using plain HTML, it works fine. This verifies the Apache server is loaded and running.

When I browse to anything involing PHP, I get a 503 error. Logs below:

[Thu Apr 17 18:07:21.932851 2025] [proxy:error] [pid 180963:tid 180999] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/1744907458141401.sock (127.0.0.1:8000) failed
[Thu Apr 17 18:07:21.932944 2025] [proxy_fcgi:error] [pid 180963:tid 180999] [remote 10.0.0.23:63527] AH01079: failed to make connection to backend: 127.0.0.1
[Thu Apr 17 18:07:25.391148 2025] [proxy:error] [pid 180963:tid 181003] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/1744907458141401.sock (127.0.0.1:8000) failed
[Thu Apr 17 18:07:25.391260 2025] [proxy_fcgi:error] [pid 180963:tid 181003] [remote 10.0.0.23:63527] AH01079: failed to make connection to backend: 127.0.0.1
[Thu Apr 17 18:07:54.851230 2025] [proxy:error] [pid 180963:tid 181025] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/1744907458141401.sock (127.0.0.1:8000) failed
[Thu Apr 17 18:07:54.851355 2025] [proxy_fcgi:error] [pid 180963:tid 181025] [remote 10.0.0.23:63579] AH01079: failed to make connection to backend: 127.0.0.1
[Thu Apr 17 18:08:52.354203 2025] [proxy:error] [pid 180964:tid 180979] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/1744907458141401.sock (127.0.0.1:8000) failed
[Thu Apr 17 18:08:52.354294 2025] [proxy_fcgi:error] [pid 180964:tid 180979] [remote 10.0.0.23:63616] AH01079: failed to make connection to backend: 127.0.0.1

Any guidance on what may be causing this? I did remove PHP 7.3 earlier, after realizing I installed it, then didn’t need it any more.

I switched my PHP back to 8.2, and that resolved it - the problem is only with PHP 8.3, it seems.

If you switch back to 8.3 again does it start working? I think there’s a known issue where sometimes the PHP-FPM service doesn’t get setup correctly in some cases.

1 Like

That did the trick, thank you!

That bug is fixed in the next Virtualmin version, AFAIK, by the way.

1 Like

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.