Hi!
I am using in all NGINX configuration on a Debian server. It happens that sometimes when a lot of users want to access the site, I receive the following error:
php-fpm.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client: 46.88.158.20, server: exampledomain.com, request: "GET / example/example/example HTTP/2.0", upstream: "fastcgi://unix:///var/www/vhosts/system/exampledomain.com/php-fpm.sock:"
I do not run out of child processes. I read that some people managed to get rid of the problem by switching from Unix-socket to a TCP/IP socket.
Now I need to know what additional directives I need for PHP and NGINX to switch from the Unix-socket to the TCP/IP socket use.
I think for PHP this should be:
listen = localhost:9000
But I do not know what to use for NGINX. Can someone please help me on this?
Thanks!
I am using in all NGINX configuration on a Debian server. It happens that sometimes when a lot of users want to access the site, I receive the following error:
php-fpm.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client: 46.88.158.20, server: exampledomain.com, request: "GET / example/example/example HTTP/2.0", upstream: "fastcgi://unix:///var/www/vhosts/system/exampledomain.com/php-fpm.sock:"
I do not run out of child processes. I read that some people managed to get rid of the problem by switching from Unix-socket to a TCP/IP socket.
Now I need to know what additional directives I need for PHP and NGINX to switch from the Unix-socket to the TCP/IP socket use.
I think for PHP this should be:
listen = localhost:9000
But I do not know what to use for NGINX. Can someone please help me on this?
Thanks!