Get your free beta license ↗
Websites · Apache

A site returns 503 Service Unavailable

Last updated 30 Nov 2026
Summary

Every PHP page on a site returns 503 Service Unavailable, and Apache logs a failed connection to the PHP-FPM socket. Starting the stopped PHP-FPM service for the site's PHP version fixes the error.

Symptoms

PHP pages on every site that uses one PHP version return 503 Service Unavailable. The domain's error log, shown by urbestack-domain-log --name example.com --type error, contains these lines.

Output
[Mon Nov 30 08:26:55.074072 2026] [proxy:error] [pid 2100:tid 2202] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/urbestack/php/example.com-84.sock (localhost:8000) failed
[Mon Nov 30 08:26:55.074304 2026] [proxy_fcgi:error] [pid 2100:tid 2202] [client 203.0.113.10:35330] AH01079: failed to make connection to backend: localhost

Cause

Each site runs PHP in a pool for its PHP version. The pool listens on a socket under /run/urbestack/php/. The socket name ends with the version, such as -84 for PHP 8.4.

When the PHP-FPM service for that version stops or fails, the socket disappears and Apache returns 503 Service Unavailable.

Resolution

  1. Check the PHP-FPM service for the site's PHP version. The service name starts with php- and ends with the version. For PHP 8.4, check php-8.4.

    urbestack-service-list --name php-8.4
  2. Start the service again.

    urbestack-service-restart --name php-8.4
  3. Run urbestack-service-list --name php-8.4 again to check that the service is running.

  4. If the service fails to start, test its configuration. On AlmaLinux, run the PHP 8.4 configuration test with this command.

    /opt/remi/php84/root/usr/sbin/php-fpm -t
  5. On Ubuntu, use this command.

    /usr/sbin/php-fpm8.4 -t
  6. A successful test ends with a line like the one below, with the configuration file path for that PHP version.

    Output
    NOTICE: configuration file /etc/php/8.4/fpm/php-fpm.conf test is successful
  7. If the configuration has an error, the test names the file and line at fault. The PHP-FPM error log is /var/opt/remi/php84/log/php-fpm/error.log on AlmaLinux and /var/log/php8.4-fpm.log on Ubuntu.