502 Bad Gateway for webmail at /mail

Our box is working with mail client download and reports no issues at /admin. However, we can no longer access webmail at /mail and are given 502 Bad Gateway error page.

Error log at /var/log/nginx/error.log

2015/04/30 23:40:29 [error] 5105#0: *10923 connect() to unix:/var/run/php5-fpm.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client: xxx.xxx.xxx.xxx, server: box.xxxxxxxx.com, request: “GET /cloud/status.php HTTP/1.1”, upstream: “fastcgi://unix:/var/run/php5-fpm.sock:”, host: “box.xxxxxxxx.com

Any suggestion to resolve is much appreciated! Thanks.

Try the following:

sudo rm /etc/php5/fpm/conf.d/05-opcache.ini
sudo service php5-fpm restart

Awesome, that worked, thank you.