📖 ~1 min read
Table of contents
Symptom & Impact
Dynamic PHP pages fail with HTTP 503 while static assets remain reachable.
Environment & Reproduction
Ubuntu 24.04 LTS with Apache2 using php8.3-fpm via Unix socket proxy.
Root Cause Analysis
PHP-FPM service/pool is down, socket path changed, or permissions deny Apache access.
Quick Triage
Check status of Apache and php-fpm units plus configured socket path.
sudo systemctl status apache2 php8.3-fpm; grep -R 'SetHandler' /etc/apache2/sites-enabled
Step-by-Step Diagnosis
Inspect php-fpm logs, pool config, and socket owner/group alignment for www-data.
sudo journalctl -u php8.3-fpm --since '1 hour ago'; sudo ls -l /run/php

Solution – Primary Fix
Fix pool listen path/permissions, restart php-fpm then Apache, and validate vhost settings.
Still having issues? Our IT Solutions & Services team can diagnose and resolve this for you. Get in touch for a free consultation.
sudo systemctl restart php8.3-fpm && sudo systemctl restart apache2

Solution – Alternative Approaches
Use TCP listener for php-fpm backend in clustered deployments.
Verification & Acceptance Criteria
503 errors stop and PHP pages render correctly under expected load.
Rollback Plan
Restore previous pool config and Apache virtual host definitions from backups.
Prevention & Hardening
Add monitoring for php-fpm pool saturation and socket presence checks.
Related Errors & Cross-Refs
Cross-reference max_children exhaustion and slowlog spikes in php-fpm pools.
Related tutorial: View the step-by-step tutorial for Ubuntu 24.04 LTS.
View all Ubuntu 24.04 LTS tutorials on the Tutorials Hub →
Browse all common problems & solutions on the Tutorials Hub.
References & Further Reading
Apache proxy_fcgi docs and php-fpm pool configuration manuals.
Need Expert Help?
If you cannot resolve this yourself, our team offers hands-on Server Management, Managed IT Services, and flexible Support Plans. Contact us today — we respond within one business day.