Here is an easy to understand & fix the error connect() to unix:/var/run/php5-fpm.sock failed. No Need to change to listen = 127.0.0.1:9000.