Intermediate
Web Servers
Comprehensive troubleshooting guide for connect() to unix:/var/run/php/php-fpm.sock failed (111: Connection refused). Learn root causes, system traces, and verified resolutions.
#502 bad gateway
#fastcgi
#nginx
#permissions
#php-fpm
#sysadmin
#unix-socket
Intermediate
Web Server
Troubleshoot 'permissions denied' when Nginx worker processes fail to open a Unix socket on Windows WSL2 Ubuntu. Fix PHP-FPM and directory permissions.
#502 bad gateway
#nginx
#permissions
#php-fpm
#ubuntu
#unix-socket
#wsl2
Advanced
Web Server
Fix the 'FastCGI buffer size exceeded' error on Nginx with PHP-FPM on Debian 12. Adjust Nginx and PHP-FPM buffer settings for large HTTP headers.
#502 bad gateway
#debian12
#fastcgi
#http headers
#nginx
#php-fpm
#troubleshooting
#webserver
Intermediate
Runtimes
Resolve Nginx 502 Bad Gateway errors caused by PHP-FPM Unix socket permission issues on Ubuntu 22.04 LTS by correcting user, group, and listen mode configurations.
#502 bad gateway
#nginx
#permissions
#php-fpm
#ubuntu-22.04
#unix-socket