An error occurred.

By | June 24, 2014

I encountered the following error on my VPS?

Sorry, the page you are looking for is currently unavailable.
Please try again later.

If you are the system administrator of this resource then you should check the error log for details.

Faithfully yours, nginx.


I noticed the above error message immediately after running the following cli:

# apt-get update && aptitude dist-upgrade -y && apt-get autoremove -y


I had to check the error logs for details on the issue? And the error logs revealed the following:

14:48:22 [crit] 1685#0: *1 connect() to unix:/var/run/php5-fpm.sock failed (13: Permission denied) while connecting to upstream, client:, server:, request: “GET / HTTP/1.1”, upstream: “fastcgi://unix:/var/run/php5-fpm.sock:”, host: “”

This solved my problem.

Changed owner of php5-fpm.sock and set permission to 0660.

1. Go to /etc/php5/fpm/pool.d
2. Open www.conf (vi www.conf)
3. Uncomment all permission lines, like:
; listen.owner = www-data
; = www-data
; listen.mode = 0660
4. Restart fpm (sudo service php5-fpm restart)

Hope this helps!