title: Wordpress: An error occurred in nginx
body: <p>I launched a wordpress website on DigitalOcean, installed wordpress using this tutorial <a href="https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-with-nginx-on-ubuntu-14-04" rel="nofollow noreferrer" title="DigitalOcean">here</a>!</p>
  
  <p>Next day my wordpress site was down and I got the below error.</p>
  
  <blockquote>
    <p>"An error occurred.</p>
    
    <p>Sorry, the page you are looking for is currently unavailable. Please
    try again later.</p>
    
    <p>If you are the system administrator of this resource then you should
    check the error log for details.</p>
    
    <p>Faithfully yours, nginx."</p>
  </blockquote>
  
  <p>If i restart <code>php5-fpm</code>, it works for few minutes and after I am getting the same error page.</p>
  
  <p>I searched for possible solutions, but I couldn't find anything.</p>
  
  <p>how to solve this?</p>
  
  <p><strong>Update</strong></p>
  
  <p>Error : connect() to unix:/var/run/php5-fpm.sock failed</p>
  
  <p>I tried everything from this link <a href="https://stackoverflow.com/questions/23443398/nginx-error-connect-to-php5-fpm-sock-failed-13-permission-denied" title="Stackoverflow">here</a> but nothing worked</p>