After an update of my system I ran into a bad gateway error of my PHP apps running on Nginx.
1 connect() to unix:/var/run/php-fcgi-vhostname-php-fcgi-
Hello every one and thanks for help, in my case with Ubuntu server 14.04 nginx and php5-fpm the problem with php-fpm socket owner by root solved by editing the file /etc/php5/fpm/pool.d/www.conf Uncomment the lines:
listen.owner = www-data
listen.group = www-data
listen.mode = 0660
From a clear installation nginx owner and group is www-data. I think that the best practice is to look /etc/nginx/nginx.conf and verify that in first line is:
user www-data;
And use the default user, Chears !