📖 ~1 min read
Table of contents
Symptom & Impact
Dynamic PHP pages fail with HTTP 503 while static assets continue to load.
Environment & Reproduction
Ubuntu 24.04 LTS with apache2 and php-fpm using unix socket proxy configuration.
Root Cause Analysis
Apache vhost references old PHP socket path after PHP version or pool change.
Quick Triage
Check apache error.log for AH01079 and inspect running php-fpm sockets under /run/php.
Step-by-Step Diagnosis
Compare SetHandler proxy target with active php-fpm pool listen directive values.

Solution – Primary Fix
Update Apache handler to correct php-fpm socket, restart php-fpm and reload apache2.
Still having issues? Our IT Solutions & Services team can diagnose and resolve this for you. Get in touch for a free consultation.

Solution – Alternative Approaches
Use TCP listen mode for php-fpm pools where socket path churn complicates operations.
Verification & Acceptance Criteria
PHP test page executes correctly and 503 responses disappear from access logs.
Rollback Plan
Revert vhost and pool configuration to previous known-good PHP version mapping.
Prevention & Hardening
Template Apache and php-fpm configs together to prevent drift after package upgrades.
Related Errors & Cross-Refs
Permission mismatch on socket file and disabled proxy_fcgi module also cause 503 conditions.
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 and PHP-FPM integration references for Ubuntu web stacks.
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.