Monthly Archives: November 2016

php-fpm – upstream: “fastcgi://”


2016/11/22 10:01:01 [error] 18314#0: *1 connect() failed (111: Connection refused) while connecting to upstream, client:XX.XX.X.XXX, server:, request: "GET / HTTP/1.1", upstream: "fastcgi://", host: ""

Lets edit /etc/php-fpm.d/www.conf and uncomment the line of and comment listen = /var/run/php-fpm/php-fpm.sock.

; Note: This value is mandatory.
listen =
#listen = /var/run/php-fpm/php-fpm.sock

And restart PHP-FPM & nginx

/bin/systemctl restart  php-fpm.service
/bin/systemctl restart  nginx.service

CRITICAL | | (Return code of 255 is out of bounds)


My nagios was returning a CRITICAL error on one of my servers…

CRITICAL | | (Return code of 255 is out of bounds)

and httpd server wasn’t responding….

I think that problem was on IPTABLES / FAIL2BAN ban list. I had 702 banned IPs…
After I clean them up, everything went okay!


I was playing hard with them… my bantime was 3600000 (41d) and my findtime was 60000 (16h)…