Project

General

Profile

[lighttpd 1.5] "No input file specified." error if a .php page is not found

Added by lightly-in-trouble about 15 years ago

Sorry, topic deleted by autor
If your lighttpd is displaying a "No input file specified." error when you request a nonexistent .php page, check answer 4.


Replies (4)

RE: [lighttpd 1.5] "No input file specified." error if a .php page is not found - Added by lightly-in-trouble about 15 years ago

Why? The CMS handles 404 errors perfectly, but I think that the problem is related to spawn-fcgi or PHP: when it doesn't find the page, instead of telling lighttpd that a 404 error occoured, it just displays the "No input file specified" error.

Anyway, thank you for your answer.

RE: [lighttpd 1.5] "No input file specified." error if a .php page is not found - Added by lightly-in-trouble about 15 years ago

Hey, I've found a way to solve that problem.

I found on [[Docs:ModProxyCore]] a simple way to resolve this problem.

I changed my php.conf from this:

$HTTP["url"] =~ "\.php$" {
        proxy-core.protocol = "fastcgi" 
        proxy-core.backends = ( "unix:/tmp/php-fastcgi.sock" )
        proxy-core.max-pool-size = 16
        proxy-core.allow-x-sendfile = "enable" 
        proxy-core.balancer = "round-robin" 
}

to this:
$PHYSICAL["existing-path"] =~ "\.php$" {
        proxy-core.protocol = "fastcgi" 
        proxy-core.backends = ( "unix:/tmp/php-fastcgi.sock" )
        proxy-core.max-pool-size = 16
        proxy-core.allow-x-sendfile = "enable" 
        proxy-core.balancer = "round-robin" 
}

I hope I helped you, if you had a problem like mine :)

    (1-4/4)