title: Strange webserver issue
body: <p>MY OS: Ubuntu 12.10
  Web server environment is: Nginx + PHP-FPM</p>
  <p>Installed based <a href="http://iain.it/linux/how-to-install-php-fpm-and-nginx-on-ubuntu-12-04" rel="nofollow noreferrer">on this tutorial</a></p>
  <p>Here is nginx conf file of website</p>
  <pre><code>server {
  set $host_path &quot;path_to_website&quot;;
  
  server_name  website.local;
  
  root $host_path;
  set $yii_bootstrap &quot;index.php&quot;;
  
  charset utf-8;
  index index.php index.html;
  
  log_not_found off;
  
  location / {
      index  index.html $yii_bootstrap;
      try_files $uri $uri/ /$yii_bootstrap?$args;
      }
  
      location ~ ^/(protected|framework|themes/\w+/views) {
      deny  all;
      }
  
      #avoid processing of calls to unexisting static files by yii
      location ~ \.(js|css|png|jpg|gif|swf|ico|pdf|mov|fla|zip|rar)$ {
      try_files $uri =404;
  }
  
  
  location ~ \.php$ {
      fastcgi_split_path_info  ^(.+\.php)(.*)$;
      #let yii catch the calls to unexising PHP files
      set $fsn /$yii_bootstrap;
      if (-f $document_root$fastcgi_script_name){
          set $fsn $fastcgi_script_name;
      }
      fastcgi_pass unix:/var/run/php5-fpm.sock;
      fastcgi_index index.php;
      fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
      include fastcgi_params;
  }
  
  location ~ /\.ht {
      deny  all;
  }
  </code></pre>
  <p>}</p>
  <p>BTW, this configuration is <a href="http://www.yiiframework.com/doc/guide/1.1/en/quickstart.apache-nginx-config" rel="nofollow noreferrer">optimized for Yii framework</a></p>
  <p>The problem is, when I try to enter to the website, getting following error:</p>
  <pre><code>File not found. 
  </code></pre>
  <p>And when I open nginx <code>error.log</code> file, I see following content</p>
  <pre><code>    2013/03/22 23:36:45 [crit] 14388#0: *4 stat() &quot;path_to_website&quot; failed (13: Permission denied), client: 127.0.0.1, server: website.local, request: &quot;GET / HTTP/1.1&quot;, host: &quot;website.local&quot;
  2013/03/22 23:36:45 [crit] 14388#0: *4 stat() &quot;path_to_website&quot; failed (13: Permission denied), client: 127.0.0.1, server: website.local, request: &quot;GET / HTTP/1.1&quot;, host: &quot;website.local&quot;
  2013/03/22 23:36:45 [crit] 14388#0: *4 stat() &quot;path_to_websiteindex.php&quot; failed (13: Permission denied), client: 127.0.0.1, server: website.local, request: &quot;GET / HTTP/1.1&quot;, host: &quot;website.local&quot;
  2013/03/22 23:36:45 [error] 14388#0: *4 FastCGI sent in stderr: &quot;Primary script unknown&quot; while reading response header from upstream, client: 127.0.0.1, server: website.local, request: &quot;GET / HTTP/1.1&quot;, upstream: &quot;fastcgi://unix:/var/run/php5-fpm.sock:&quot;, host: &quot;website.local&quot;
  </code></pre>
  <p>I'm 100% sure about path of website, and also added into hosts file <code>website.local</code>. Also <code>chown</code>-ed recursively whole parent directory recursively, where website located.</p>
  <p>I can't figure out what can be problem. PLease help me to fix this problem. I can give remote acces to anyone who wants to help.</p>
  <h1>NOTE</h1>
  <p>I just replaced the real path with this <code>path_to_website</code> for confidence. Thats all. THere is real path</p>