3

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.

Vitaliy Isikov
  • 3,647
  • 9
  • 38
  • 46

2 Answers2

3

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"
         )
     )
 )
Dana the Sane
  • 14,762
  • 8
  • 58
  • 80
Amy Anuszewski
  • 1,843
  • 17
  • 30
0

If that doesn't work, try:

sudo lighty-enable-mod fastcgi 
sudo lighty-enable-mod fastcgi-php

Worked for me.

knutole
  • 1,709
  • 2
  • 22
  • 41