unix:/var/run/php5-fpm.sock failed (11: Resource temporarily unavailable)
- http://stackoverflow.com/questions/10470109/error-502-in-nginx-php5-fpm/10470827#10470827
- http://stackoverflow.com/questions/25098029/connect-to-unix-var-run-php5-fpm-sock-failed-what-is-wrong-with-my-setup
(1)vim /etc/php5/fpm/pool.d/www.conf
search for
listen = /var/run/php5-fpm.sock
and replace it for
listen = 127.0.0.1:7777
(2)vim /etc/nginx/nginx.conf
replace (or comment)
fastcgi_pass unix:/var/run/php5-fpm.sock;
with
fastcgi_pass 127.0.0.1:7777;
(3)重启
sudo service php5-fpm restart
sudo /etc/init.d/php5-fpm restart
nginx -s reload