Configuration ΒΆ Add this line: cgi.fix_pathinfo = 1 to your php.ini. And make sure mod_fastcgi is loaded in your lighttpd.conf: server.modules = ( "mod_fastcgi", ) Then add this basic section to the same file: fastcgi.server = ( ".php" => (( "bin-path" => "/path/to/php-cgi", "socket" => "/tmp/php.socket", )))