• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Question Switch from Unix-socket to TCP/IP socket

Chaos23

New Pleskian
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!
 
This error can be occured when php-fpm server is restarting when new configuration applied.
You also can try increasing php resources in Domain > PHP Settings >
Set pm.max_children to 10 or 20, pm.max_requests to 1000, pm to dynamic.

Switching from unix socket is not a good solution (because communications over unix socket are more stable then over tcp/ip)
 
Back
Top