• Debian 11 has reached its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.81 is the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

connect() to unix ... php-fpm.sock failed

Huskynarr

Basic Pleskian
I don't know which change that Problem makes, But if more than a handful of people on the server, the CPU load increases enormously and php-fpm collapses after a few seconds.

My Error Log look like this:
Code:
[error] 26802#0: *758923 connect() to unix:/var/www/vhosts/system/domain.tld/php-fpm.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client: 179.43.159.26, server: domain.tld, request: "POST /xmlrpc.php HTTP/1.1",
upstream: "fastcgi://unix:/var/www/vhosts/system/domain.tld/php-fpm.sock:", host: "domain.tld"
[error] 26802#0: *758925 connect() to unix:/var/www/vhosts/system/domain.tld/php-fpm.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client: 89.14.36.143, server: domain.tld, request: "POST /wp-admin/admin-ajax.php
HTTP/1.1", upstream: "fastcgi://unix:/var/www/vhosts/system/domain.tld/php-fpm.sock:", host: "domain.tld", referrer: "http://domain.tld/wp-admin/post.php?post=12965&action=edit"
[error] 26803#0: *758716 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 94.153.10.239, server: domain.tld, request: "POST /wp-login.php HTTP/1.1", upstream: "fastcgi://unix:/var/www/vhosts/system/
domain.tld/php-fpm.sock", host: "domain.tld"
[error] 26800#0: *758952 connect() to unix:/var/www/vhosts/system/domain.tld/php-fpm.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client: 179.43.159.26, server: domain.tld, request: "POST /xmlrpc.php HTTP/1.1",
upstream: "fastcgi://unix:/var/www/vhosts/system/domain.tld/php-fpm.sock:", host: "domain.tld"
[error] 26803#0: *758958 connect() to unix:/var/www/vhosts/system/domain.tld/php-fpm.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client: 179.43.159.26, server: domain.tld, request: "POST /xmlrpc.php HTTP/1.1",
upstream: "fastcgi://unix:/var/www/vhosts/system/domain.tld/php-fpm.sock:", host: "domain.tld"
02] /var/www/vhosts/domain.tld/logs/proxy_error_log

The Chmod / Rights are:
Code:
drwx--x--x  6 root   psaserv 4096 Jul  9 23:35 .
drwxr-xr-x 87 root   root    4096 Jul 11 14:33 ..
drwxr-x---  2 root   psaserv 4096 Jul 10 00:22 conf
drwx------  2 psaadm root    4096 Jul 14 07:10 logs
drwx--x---  2 root   psaserv 4096 Jul 10 00:22 pd
srw-rw----  1 root   psaserv    0 Jul  9 23:35 php-fpm.sock
dr-xr-x---  6 root   psaserv 4096 Sep 10  2014 statistics

My Nginx Additional Rules:
Code:
if (!-e $request_filename){
    rewrite ^(.*)$ /index.php break;
}
try_files $uri $uri/ /index.php$is_args$args;
expires 60s;
location ~* \.(ico)$ {
    expires 2592000s;
}
location ~* \.(jpeg|jpg)$ {
    expires 2592000s;
}
location ~* \.(png)$ {
    expires 2592000s;
}
location ~* \.(gif)$ {
    expires 2592000s;
}
location ~* \.(swf)$ {
    expires 2592000s;
}
location ~* \.(css)$ {
    expires 604800s;
}
location ~* \.(js|jsonp)$ {
    expires 216000s;
}
location ~* \.(js)$ {
    expires 216000s;
}
location ~* \.(html|htm|shtml)$ {
    expires 900s;
}
location ~* \.(xhtml)$ {
    expires 900s;
}
location ~ /\.(ico|jpe?g|png|gif|swf)$ {
}
location ~ /\.(css)$ {
}
location ~ /\.(js)$ {
}
location ~ /\.(x?html?|php)$ {
}
location ~* \.(css)$ {
    expires 31536000s;
}
location ~* \.(htc)$ {
    expires 31536000s;
}
location ~* \.(js)$ {
    expires 31536000s;
}
location ~* \.(js|jsonp)$ {
    expires 31536000s;
}
location ~* \.(html|htm|shtml)$ {
    expires 36000s;
}
location ~* \.(svg|svgz)$ {
    expires 36000s;
}
location ~* \.(txt)$ {
    expires 36000s;
}
location ~* \.(xml|rss)$ {
    expires 36000s;
}
location ~* \.(doc)$ {
    expires 31536000s;
}
location ~* \.(eot)$ {
    expires 31536000s;
}
location ~* \.(gif)$ {
    expires 31536000s;
}
location ~* \.(ico)$ {
    expires 31536000s;
}
location ~* \.(jpeg|jpg)$ {
    expires 31536000s;
}
location ~* \.(json)$ {
    expires 31536000s;
}
location ~* \.(mid|midi|kar)$ {
    expires 31536000s;
}
location ~* \.(mov)$ {
    expires 31536000s;
}
location ~* \.(mpga|mpega|mp2|mp3|m4a)$ {
    expires 31536000s;
}
location ~* \.(mp4|m4v|f4v|f4p)$ {
    expires 31536000s;
}
location ~* \.(mpeg|mpg|mpe)$ {
    expires 31536000s;
}
location ~* \.(oga|ogg|spx)$ {
    expires 31536000s;
}
location ~* \.(pdf)$ {
    expires 31536000s;
}
location ~* \.(png)$ {
    expires 31536000s;
}
location ~* \.(ppt)$ {
    expires 31536000s;
}
location ~* \.(ra)$ {
    expires 31536000s;
}
location ~* \.(svg|svgz)$ {
    expires 31536000s;
}
location ~* \.(swf)$ {
    expires 31536000s;
}
location ~* \.(tif|tiff)$ {
    expires 31536000s;
}
location ~* \.(ttf|ttc)$ {
    expires 31536000s;
}
location ~* \.(xls)$ {
    expires 31536000s;
}
location ~* \.(zip)$ {
    expires 31536000s;
}
add_header Vary "User-Agent";
location ~ /\.(css|htc|less|js|js2|js3|js4|CSS|HTC|LESS|JS|JS2|JS3|JS4)$ {
    add_header Cache-Control "public";
}
location ~ /\.(html|htm|rtf|rtx|svg|svgz|txt|xsd|xsl|xml|HTML|HTM|RTF|RTX|SVG|SVGZ|TXT|XSD|XSL|XML)$ {
    add_header Cache-Control "public";
}
location ~ /\.(asf|asx|wax|wmv|wmx|avi|bmp|class|divx|doc|docx|eot|exe|gif|gz|gzip|ico|jpg|jpeg|jpe|json|mdb|mid|midi|mov|qt|mp3|m4a|mp4|m4v|mpeg|mpg|mpe|mpp|otf|odb|odc|odf|odg|odp|ods|odt|ogg|pdf|png|pot|pps|ppt|pptx|ra|ram|svg|svgz|swf|tar|tif|tiff|ttf|ttc|wav|wma|wri|woff|xla|xls|xlsx|xlt|xlw|zip|ASF|ASX|WAX|WMV|WMX|AVI|BMP|CLASS|DIVX|DOC|DOCX|EOT|EXE|GIF|GZ|GZIP|ICO|JPG|JPEG|JPE|JSON|MDB|MID|MIDI|MOV|QT|MP3|M4A|MP4|M4V|MPEG|MPG|MPE|MPP|OTF|ODB|ODC|ODF|ODG|ODP|ODS|ODT|OGG|PDF|PNG|POT|PPS|PPT|PPTX|RA|RAM|SVG|SVGZ|SWF|TAR|TIF|TIFF|TTF|TTC|WAV|WMA|WRI|WOFF|XLA|XLS|XLSX|XLT|XLW|ZIP)$ {
    add_header Cache-Control "public";
}

location ^~ /files/windows/ {
    limit_rate 150k;
}

I can't Regex, because this is the Reason for the muddled Rules.


And at the plesk service php-fpm status:
Code:
php-fpm: unrecognized service

Any Ideas how can i fix that (or make this easier to read)?

Hope and Thanks for Answers.

Ps. yes i have found the search function, i have read a lot of threads and Blogs, but nothing found or im a idiot. :D
 
Back
Top