Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 935
Vitaliy Isikov Avatar asked Nov 27 '25 09:11

Vitaliy Isikov


1 Answers

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"
         )
     )
 )
like image 147
Amy Anuszewski Avatar answered Nov 28 '25 22:11

Amy Anuszewski



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!