How to Fix “/var/run/php-fpm.sock failed (13: Permission denied) while connecting to upstream, client: 127.0.0.1”

Share this Article :

Issue :

I received the following error in nginx error log. Happened on nginx/1.6.2 and PHP 5.4.32 (fpm-fcgi).

2014/09/17 00:17:30 [crit] 11909#0: *34 connect() to unix:/var/run/php-fpm.sock failed (13: Permission denied) while connecting to upstream, client: 127.0.0.1, server: www.ehowstuff.com, request: "GET /feed/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm.sock:", host: "www.ehowstuff.com"

Solution :

Edit /etc/php-fpm.d/www.conf . Uncomment “listen.mode = 0666”

Leave a Reply