Question

Error - php7.2 fpm.sock failed [NGINX - Ubuntu Server]

I have configured my LEMP server as such, but I have an error. does not charge I get NOT FOUND

You could visit my project to visualize my error

http://178.128.1.213/

LOG ERRORS

root@lemp-s-1vcpu-1gb-sfo2-01:/etc/nginx/sites-available# sudo tail -n 20 /var/log/nginx/error.log
2019/01/07 07:59:44 [crit] 16669#16669: *1 connect() to unix:/var/run/php/php7.2-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 187.225.178.81, server: 178.128.1.213, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.2-fpm.sock:", host: "178.128.1.213"
2019/01/07 07:59:44 [error] 16669#16669: *1 open() "/usr/share/nginx/html/50x.html" failed (2: No such file or directory), client: 187.225.178.81, server: 178.128.1.213, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.2-fpm.sock", host: "178.128.1.213"
2019/01/07 07:59:45 [crit] 16669#16669: *1 connect() to unix:/var/run/php/php7.2-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 187.225.178.81, server: 178.128.1.213, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.2-fpm.sock:", host: "178.128.1.213"
2019/01/07 07:59:45 [error] 16669#16669: *1 open() "/usr/share/nginx/html/50x.html" failed (2: No such file or directory), client: 187.225.178.81, server: 178.128.1.213, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.2-fpm.sock", host: "178.128.1.213"
2019/01/07 07:59:45 [crit] 16669#16669: *1 connect() to unix:/var/run/php/php7.2-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 187.225.178.81, server: 178.128.1.213, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.2-fpm.sock:", host: "178.128.1.213"
2019/01/07 07:59:45 [error] 16669#16669: *1 open() "/usr/share/nginx/html/50x.html" failed (2: No such file or directory), client: 187.225.178.81, server: 178.128.1.213, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.2-fpm.sock", host: "178.128.1.213"
2019/01/07 07:59:45 [crit] 16669#16669: *1 connect() to unix:/var/run/php/php7.2-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 187.225.178.81, server: 178.128.1.213, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.2-fpm.sock:", host: "178.128.1.213"
2019/01/07 07:59:45 [error] 16669#16669: *1 open() "/usr/share/nginx/html/50x.html" failed (2: No such file or directory), client: 187.225.178.81, server: 178.128.1.213, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.2-fpm.sock", host: "178.128.1.213"
2019/01/07 07:59:46 [crit] 16669#16669: *1 connect() to unix:/var/run/php/php7.2-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 187.225.178.81, server: 178.128.1.213, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.2-fpm.sock:", host: "178.128.1.213"
2019/01/07 07:59:46 [error] 16669#16669: *1 open() "/usr/share/nginx/html/50x.html" failed (2: No such file or directory), client: 187.225.178.81, server: 178.128.1.213, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.2-fpm.sock", host: "178.128.1.213"
2019/01/07 08:02:12 [crit] 16820#16820: *1 connect() to unix:/var/run/php/php7.2-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 187.225.178.81, server: 178.128.1.213, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.2-fpm.sock:", host: "178.128.1.213"
2019/01/07 08:02:12 [error] 16820#16820: *1 open() "/usr/share/nginx/html/50x.html" failed (2: No such file or directory), client: 187.225.178.81, server: 178.128.1.213, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.2-fpm.sock", host: "178.128.1.213"
2019/01/07 08:02:12 [crit] 16820#16820: *1 connect() to unix:/var/run/php/php7.2-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 187.225.178.81, server: 178.128.1.213, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.2-fpm.sock:", host: "178.128.1.213"
2019/01/07 08:02:12 [error] 16820#16820: *1 open() "/usr/share/nginx/html/50x.html" failed (2: No such file or directory), client: 187.225.178.81, server: 178.128.1.213, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.2-fpm.sock", host: "178.128.1.213"
2019/01/07 08:02:13 [crit] 16820#16820: *1 connect() to unix:/var/run/php/php7.2-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 187.225.178.81, server: 178.128.1.213, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.2-fpm.sock:", host: "178.128.1.213"
2019/01/07 08:02:13 [error] 16820#16820: *1 open() "/usr/share/nginx/html/50x.html" failed (2: No such file or directory), client: 187.225.178.81, server: 178.128.1.213, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.2-fpm.sock", host: "178.128.1.213"
2019/01/07 09:00:25 [crit] 16820#16820: *6 connect() to unix:/var/run/php/php7.2-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 187.225.178.81, server: 178.128.1.213, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.2-fpm.sock:", host: "178.128.1.213"
2019/01/07 09:00:25 [error] 16820#16820: *6 open() "/usr/share/nginx/html/50x.html" failed (2: No such file or directory), client: 187.225.178.81, server: 178.128.1.213, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.2-fpm.sock", host: "178.128.1.213"
2019/01/07 09:00:42 [crit] 16820#16820: *6 connect() to unix:/var/run/php/php7.2-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 187.225.178.81, server: 178.128.1.213, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.2-fpm.sock:", host: "178.128.1.213"
2019/01/07 09:00:42 [error] 16820#16820: *6 open() "/usr/share/nginx/html/50x.html" failed (2: No such file or directory), client: 187.225.178.81, server: 178.128.1.213, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.2-fpm.sock", host: "178.128.1.213"
root@lemp-s-1vcpu-1gb-sfo2-01:/etc/nginx/sites-available#

this error causes me not to be able to open my project

I tried to do this, but I can not open the file. I get all white

/etc/php/7.2/fpm/pool.d/www.conf

it’s as if the directory did not exist

root@lemp-s-1vcpu-1gb-sfo2-01:/var/www/atenea# cd /etc/php/7.2
root@lemp-s-1vcpu-1gb-sfo2-01:/etc/php/7.2# ls
apache2  cli  fpm  mods-available
root@lemp-s-1vcpu-1gb-sfo2-01:/etc/php/7.2# cd fpm
root@lemp-s-1vcpu-1gb-sfo2-01:/etc/php/7.2/fpm# ls
conf.d
root@lemp-s-1vcpu-1gb-sfo2-01:/etc/php/7.2/fpm# cd conf.d
root@lemp-s-1vcpu-1gb-sfo2-01:/etc/php/7.2/fpm/conf.d# ls
root@lemp-s-1vcpu-1gb-sfo2-01:/etc/php/7.2/fpm/conf.d# ls -la
total 8
drwxr-xr-x 2 root root 4096 Jan  7 07:53 .
root@lemp-s-1vcpu-1gb-sfo2-01:/etc/php/7.2/fpm/conf.d# 
Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hey friend,

Starting with this:

2019/01/07 09:36:19 [error] 16820#16820: *30 open() "/usr/share/nginx/html/50x.html" failed (2: No such file or directory), client: 187.225.178.81, server: 178.128.1.213, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.2-fpm.sock", host: "178.128.1.213"

This suggests to me that php-fpm may not be running. Try “systemctl start php72-fpm” and see if that makes any difference.

This:

2019/01/07 10:01:22 [emerg] 19132#19132: invalid number of arguments in "fastcgi_pass" directive in /etc/nginx/sites-enabled/default:63

Sounds like a syntax error on line 63 of /etc/nginx/sites-enabled/default.

This:

2019/01/07 10:16:39 [emerg] 19570#19570: a duplicate default server for 0.0.0.0:80 in /etc/nginx/sites-enabled/digitalocean:21

Sounds like doubled up configuration in /etc/nginx/sites-enabled/digitalocean, check that you haven’t accidentally doubled the server block.

Jarland