title: Lighttpd 403 Forbidden for PHP files
body: <p>I've just installed lighttpd on my dedicated server, mod_fastcgi is enabled, so I've appended the following lines to the <code>lighttpd.conf</code> file:</p>
  
  <pre><code>fastcgi.server = ( ".php" =&gt;
  ( "localhost" =&gt;
                       (
                          "socket" =&gt; "/tmp/php-fastcgi.socket",
                          "bin-path" =&gt; "/usr/local/bin/php-cgi"
                        )
                     )
  )
  </code></pre>
  
  <p>But it still doesn't help, since I'm getting the <code>403 - Forbidden</code> message when I try to enter a PHP file in my web browser... When I delete the <code>index.php</code> file from my web root directory and place the <code>index.html</code> there, then everything is fine, and there are no errors, no matter if <code>index.php</code> file has 100 lines or just one - <code>&lt;?php echo 'test'; ?&gt;</code> it always is showing up an <code>403 - Forbidden</code>, I'm out of ideas now.</p>
  
  <p>Why does it happend?</p>
  
  <p><code>ls -la</code> of my web root directory:</p>
  
  <pre><code>#
  total 6
  
      drwxr-xr-x  15 root  wheel   1536 Jul 18 10:23 .
      drwxr-xr-x   4 root  wheel    512 Jul 18 08:45 ..
      drwxr-xr-x   2 www   www      512 Jul  1 02:36 cache
      drwxr-xr-x   2 www   www      512 Jul  1 02:36 config
      drwxr-xr-x   6 www   www      512 Jul  1 02:36 inc
  -rw-r--r--   1 www   www        9 Jul 18 11:02 index.php
  </code></pre>