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: root@play:~# ls -lsa /var/run/php/ total 3 0 drwxr-xr-x 2 www-data www-data 120 Dez 7 20:27 . 0 drwxr-xr-x 27 root root 840 Dez 7 20:28 .. 0 srw-rw---- 1 www-data www-data 0 Dez 7 20:27 dev.example.sock 4 -rw-r--r-- 1 root root 4 Dez 7 20:27 php7.2-fpm.pid 0 srw-rw---- 1 www-data www-data 0 Dez 7 20:27 php7.2-fpm.sock So what happened? After thinking about the so-called Nginx socket leak (see https://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 http://178.128.1.213/ LOG ERRORS
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
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. How do I know if PHPTo find out php version installed on the server type any one of the following commands on your server. Open the terminal prompt and then type the following commands. Are you using php-fpm? Get php version using the php-fmp -v or php-fpm73 -v command.
What is PHPA: PHP-FPM (FastCGI Process Manager) is a web tool used to speed up the performance of a website. It is much faster than traditional CGI based methods and has the ability to handle tremendous loads simultaneously.
Does NGINX require PHPPHP-FPM (FastCGI Process Manager) is an alternative to FastCGI implementation of PHP with some additional features useful for sites with high traffic. It is the preferred method of processing PHP pages with NGINX and is faster than traditional CGI based methods such as SUPHP or mod_php for running a PHP script.
Which port is PHPBy default, this configuration starts a PHP-FPM server listening on port 9000 that binds to 127.0. 0.1 (localhost). If your intention is to run PHP-FPM on a separate server, then you will need to amend the following values in your PHP-FPM domain configuration file.
|