lighttpd forum lighty > Lighttpd 1.5 w/ mod_cgi problems

Posted by David Churchill (Guest)
on 02.05.2008 23:12
Hey all,

I'm having an issue with mod_cgi where lighttpd waits until the idle 
time is reached and then returns a 200 on perl CGI requests.  During 
this wait time I just see a blank white screen in the browser.

The two perl based CGI applications I tested and get the same result 
from are Bugzilla 3.1.3 and TWiki 4.2.0.

On the server perl is installed correctly and I can manually query the 
both applications and get valid HTML output.  Through some investigation 
I was able to determine that taint mode (-T) in perl would cause scripts 
to fail but even after removing taint mode TWiki would not start.

I noticed as well that if I manually write a header at the start of 
TWiki's primary entry point - view.cgi - then the app works perfectly 
except for the fact that it spits out all it's headers to the browser 
first thing.

Why would taint mode cause it to fail?
Why would manually shoving a header in there cause correct headers to be 
processed regardless but also dump headers to the html stream?

Any ideas?
Posted by David Churchill (Guest)
on 03.05.2008 01:14
Manually query = Ran perl server side and had it output the correct html 
code to stdout.  I should also note that I've tested both these 
applications in Apache and they work correctly.