phpfastcgilighttpdmod-fastcgi

PHP fastcgi returns 403 on Lighttpd server


I've been agonizing over this issue for the past day now. I've setup lighty on my server and it serves static files fine but keeps giving me 403 on php files.

I've gone through every tutorial, wiki and forum that I can find on the subject and nothing helped.

I've chown lighttpd:lighttpd the php files and chmod to 644 and 755. I really need some help here.

Here is a link to my *.conf files:

http://174.122.151.65/lighttpd/

BTW, I'm running on a centOS box.

Thanks.


Solution

  • It looks like you are missing the fastcgi.server section of your lighttpd.conf file

    fastcgi.server = ( ".php" =>
        ( "localhost" =>
             (
                "socket" => "/var/run/lighttpd/php-fastcgi.socket",
                "bin-path" => "/usr/bin/php-cgi"
             )
         )
     )