title: Nginx stat() failed (13: Permission Denied)
body: <p>Okay so there have been some previous posting of this yet no solution fixes my problem. </p>
  
  <p>I have site configured which is just straight up HTML, CSS &amp; JS and I'm trying to add a wordpress site. My config for the wordpress site is as follows.</p>
  
  <pre><code>#######################
  
  server {
  listen 80;
  
  root /usr/share/nginx/threadtheatre/wordpress;
  index index.php;
  server_name threadtheatre.co.uk;
  
  access_log   /var/log/nginx/thread.access.log;
      error_log    /var/log/nginx/thread.error.log;
  
  location / {
  
              # try_files $uri $uri/ =404;
              try_files $uri $uri/ /index.php?q=$uri&amp;$args;
  }
      error_page 404 /404.html;
  
      error_page 500 502 503 504 /50x.html;
      location = /50x.html {
              root /usr/share/nginx/html;
      }
  
      location ~ \.php$ {
              try_files $uri =404;
              fastcgi_split_path_info ^(.+\.php)(/.+)$;
              fastcgi_pass unix:/var/run/php-fpm.sock;
              fastcgi_index index.php;
              include fastcgi_params;
      }
  
  }
  </code></pre>
  
  <p>This is the error thats in my logs</p>
  
  <pre><code>"/usr/share/nginx/threadtheatre/wordpress/index.php" failed (13: Permission denied), client: 109.155.53.189, server: threadtheatre.co.uk, request: "GET / HTTP/1.1", host: "threadtheatre.co.uk"
  </code></pre>
  
  <p>nginx is using the nginx user and likewise for php-fpm. The nginx directory and all its sub directories have the following permissions.</p>
  
  <pre><code>drwxrwxr-x.  3 root nginx  4096 Feb  8 18:23 ..
  </code></pre>
  
  <p>If I browse to threadtheatre.co.uk on the web i get 404.</p>
  
  <p>hope someone can help with this.</p>
  
  <p>Lee.</p>