Bug #2045
closedlighttpd+cgi+php gives "404" response code
Description
Although lighttpd+cgi+php is working for me (i.e. php scripts run fine), lighttpd returns response code 404 (not found).
This is screwing with my java application that checks the error code.
Why would lighttpd return 404 when it successfully runs php?.....
- Windows Vista
- PHP 5.3.0
- Lighttpd 1.4.23-1 (SSL) (en.wlmp-project.net)
Cheers,
Yonas
Files
Updated by nitrox over 14 years ago
- Status changed from New to Invalid
The bugtracker is not the support forum! Beside that we don´t officially support windows.
Updated by fizk over 14 years ago
- Status changed from Invalid to Reopened
1. This is a bug. Lighttpd should not be returning 404.
2. If the dev team doesn't support Windows, that's OK, but this is still a bug.
Updated by nitrox over 14 years ago
- Status changed from Reopened to Invalid
A 404 isn´t a bug. And its more a support-question, nothing for the bugtracker, so please leave the status "invalid".
Updated by fizk over 14 years ago
OK, I'll leave it invalid when you convince me that it's not a bug.
Lighttpd is successfully running the php script, YET it returns 404. This is not correct behavior. It should return 200.
Updated by nitrox over 14 years ago
Its your script that returns 404. lighty just passes the requests through.
Updated by fizk over 14 years ago
1. Although the script can return 404, a PHP script that prints "hello" will not return 404.
2. The same script running on Ubuntu+lighttpd returns 200.
3. Thus, lighttpd is mistakenly returning 404.
Updated by icy over 14 years ago
- Target version deleted (
1.4.x)
Can you enable debug.log-request-handling and check the output in the error.log?
Updated by fizk over 14 years ago
In the file "lighty_log" I uploaded, this_file_does_not_exist.php does not exist, while fun.php exists and runs properly, but returns 404.
Updated by saili over 14 years ago
Hi, can you try to add this line in your PHP.INI
;;;;;;;;;;;;;;;;;;;;;;;;;
; Paths and Directories ;
;;;;;;;;;;;;;;;;;;;;;;;;;
doc_root = "THE HTDOCS Directory OF LIGHTY"
Updated by fizk over 14 years ago
It's already set: doc_root = "C:\Progra~1\LightTPD\htdocs"
Updated by saili over 14 years ago
In my case, if i leave it empty => doc_root =
i got the error " file not found"
Thus if i set it as you do it => doc_root = "C:\Progra~1\LightTPD\htdocs"
The PHP page is loaded for few secondes and then i got 404 error page, the problém is it works with "chrome" and "opera" and not with "IE" and "Firefox"
Updated by Torxed almost 11 years ago
I have the same exact problem. Did you ever solve it?
The script renders the data and sends it to the client but lighttpd responds with 404 at the end of the script execution.. the script just contains "print 'hello';"
Updated by fizk2 almost 11 years ago
Sorry Torxed, I don't remember what happen with this issue, as it was 4 years ago. I probably switched to running lighttpd from *nix for that project.
Also available in: Atom