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

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:, server:, request: "GET /feed/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm.sock:", host: ""

Solution :

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

Leave a Reply

Your email address will not be published. Required fields are marked *

A world leading hosting company that provides fully-managed innovative and secure solutions, suitable for hosting small to medium-sized websites

Built on the best available technologies combined with Google Cloud for strong redundancy and application availability. Backed by skilled experts to address web security threats, a devops team to create advanced custom security solutions, and 24/7 sysadmins to watch over the platform. This powerful, hands-on approach makes your sites faster, safer, and easier to manage. Starting from only $3.95/mo.


* up to 30 days money back guarantee