Project

General

Profile

Actions

Bug #2045

closed

lighttpd+cgi+php gives "404" response code

Added by fizk over 14 years ago. Updated almost 11 years ago.

Status:
Invalid
Priority:
Normal
Category:
mod_cgi
Target version:
-
ASK QUESTIONS IN Forums:

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

lighttpd-inc.conf (11.6 KB) lighttpd-inc.conf fizk, 2009-07-31 07:34
lighty_log (10.4 KB) lighty_log debug.log-request-handling enabled fizk, 2009-08-01 18:08
access_log (971 Bytes) access_log Access log fizk, 2009-08-01 18:19
Actions #1

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.

Actions #2

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.

Actions #3

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".

Actions #4

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.

Actions #5

Updated by nitrox over 14 years ago

Its your script that returns 404. lighty just passes the requests through.

Actions #6

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.

Actions #7

Updated by fizk over 14 years ago

Nitrox,

Please reply to my post. Thanks,

Y.

Actions #8

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?

Actions #9

Updated by fizk over 14 years ago

Actions #10

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.

Actions #11

Updated by fizk over 14 years ago

Actions #12

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"

Actions #13

Updated by fizk over 14 years ago

It's already set: doc_root = "C:\Progra~1\LightTPD\htdocs"

Actions #14

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"

Actions #15

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';"

Actions #16

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.

Actions

Also available in: Atom