I never had problems and now I can not access any of my sites, it shows me error 502
I am emailing in regards to my server. Since 3 days ago it has been down and I can see a 504 Gateway Time-out, I have checked all the connections and their are all working but still getting the 504 error. This is the same as this link https://www.digitalocean.com/community/questions/how-to-solve-this-error-connect-to-unix-var-run-php5-fpm-sock-failed
I have follow all the instructions to solve this problem, even modifying the config fie /etc/php/5.6/fpm/pool.d/
user = www-data
group = www-data
listen = /var/run/php5-fpm.sock
listen.owner = www-data
listen.group = www-data
listen.mode = 0660
pm = dynamic
; pm.maxchildren = (total RAM - RAM used by other process) / (average amount of RAM used by a PHP process)
pm.maxchildren = 15
; pm.startservers = minspareservers + (maxspareservers - minspareservers) / 2
pm.startservers = 5
pm.minspareservers = 5
pm.maxspareservers = 10
chdir = /
but still getting the same error.
Also, in my /var/log/nginx/error.log I can see the log as follow:
2017/07/19 10:39:40 [error] 572#0: *9379 connect() to unix:/var/run/php5-fpm.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client: 126.96.36.199, server: upram.com.ar, request: “POST /xmlrpc.php HTTP/1.0”, upstream: “fastcgi://unix:/var/run/php5-fpm.sock:”, host: “188.8.131.52”
At this point I don’t know what else to try.
I would really appreciate if you can confirm that my server is up and running correctly and/or give me an idea about what it could be.
My user is email@example.com