DE EN IT

~/errors / nginx

nginx: connect() to unix:/run/php/php-fpm.sock failed (13: Permission denied) while connecting to upstream

nginx found the PHP-FPM socket but is not allowed to open it. The visitor gets 502 Bad Gateway. The owner, group or mode of the socket do not match the user nginx runs as.

New articles by e-mail

One e-mail per new article. No tracking, unsubscribe any time. As a thank-you after confirming: my “Server operations & patching” checklist (PDF).