Connect to FPM Socket Permission Denied After Upgrade to PHP 5.5.12

If you’ve just upgraded your web server to PHP-FPM you probably noticed that your web sites went down and your Nginx logs or whatever server you are using are giving you an error message that include the following statement: connect() to unix:/var/run/www.sock failed (13: Permission denied) while connecting to upstream To provide some context for this problem see http://www.openwall.com/lists/oss-security/2014/04/29/5 What was happening before is that the sockets were being created with a mode (permissions) of 0666 which makes it possible in theory for any web site to connect to them....

2014-05-11