Php-fpm does not listen on ports Php-fpm does not listen on ports nginx nginx

Php-fpm does not listen on ports


listen = 9000

In pool configuration file (/etc/php/7.0/fpm/pool.d/www.conf).

If don't need to listen specific IP, You need to specify ONLY port to listen ALL IP at that port.


I had the same problem and could not find any solution for it.so I wrote some code to solve this problema vb code with socket programming that connecting to port 9000 in a timer then check socket state and error handle.If state not sckConnected or error rais that connection refused then endtask the php-cgi.exe or php-fpm then re-execute them.

Although this is not the best way it solves this problem!