Dieser Beitrag ist schon 657 Tage alt. Es kann sein, dass einige Informationen nicht mehr aktuell sind. Bitte behalte dies im Hinterkopf. Solltest du über Fehler stolpern, freue ich mich über eine kleine Info von dir. Danke! Today was one of these days, where I getting an error on my play server out of nowhere. I changed not much in the last days so I was a little confused about that. One of the websites was unable to work. I received a 502 Bad Gateway error. The error log from the Nginx showed the following: First I checked the socks and found ... nothing: So what happened? After thinking
about the so-called Nginx socket leak (see //www.nginx.com/resources/wiki/start/topics/tutorials/debugging/#socket-leaks) I rethought my changes in the last days. I just added a subdomain to example.com (subdomain dev.example.com). I isolated the dev with their own PHP pool. The directions and permission were correct. While I reviewed the pool configs, I realized that I named
the pools the same. dev.example.com AND example.com were configurated under [example]. And that was the problem. PHP was still able to start, but instead of throwing an error, the two configs (which different socks) were running under the newer sock (dev.example.sock).
The fix: just change the name of the pool (now I had two pools [dev.example] and [example]) and restart the PHP service. That's it.
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
//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#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.