502 Bad Gateway - Linux, php7, nginx. How to solve this error?

3

I'm having a 502 error that represents some configuration on the server, when I try to open a site using linux, nginx, and php7. Searching for other POSTS , < a href="https://en.stackoverflow.com/questions/4372/how-do-not-in-new-model-in-the-apache-does" > link on the same error I see that php needs fpm to be recognized in nginx. But fpm is installed and updated. See photo below:

The 505 error has something going on on the server. It should not be php-7 (I think). Anyone have any idea what it could be?

Updating

And finally it seems like a bug due to PHP. I tested it with an html file and I had no problems. So it looks like it has something with php itself. What can it be?

Lastlogs

2016/07/0606:14:56[crit]834#834:*15connect()tounix:/var/run/php5-fpm.sockfailed(2:Nosuchfileordirectory)whileconnectingtoupstream,client:127.0.0.1,server:ig.app,request:"GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "ig.app"

2016/07/06 06:15:04 [crit] 834#834: *15 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 127.0.0.1, server: ig.app, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "ig.app"

2016/07/06 06:15:04 [crit] 834#834: *15 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 127.0.0.1, server: ig.app, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "ig.app"

2016/07/06 06:16:29 [crit] 834#834: *15 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 127.0.0.1, server: ig.app, request: "GET /index.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "ig.app"

Update2

It looks like nginx is looking for /var/run/php5-fpm.sock . But I have version 7 in another directory.

    
asked by anonymous 06.07.2016 / 12:13

0 answers