Skip to contentSkip to conversation

lighttpd + mod_cgi

DISCUSSION Norbert Belfin 1 participant 1 message Nov 19, 2015

lore
Share & tools
lore
#0 lore raw

Hello,

we wanted to use lighttpd with mod-cgi (for php). First thing what happens was, that the module crashed. After a look in log.do_compile we found the reason.
grep output:

lighttpd-1.4.36/src/mod_cgi.c:230:50: warning: implicit declaration of function 'chunkqueue_written' [-Wimplicit-function-declaration]

The function chunkqueue_written() was removed in lighttpd version 1.4.36. The call is added by the patch 0001-mod_cgi-buffers-data-without-bound.patch which orinally was written for version 1.4.35, in which chunkqueue_written() existed.

So our first try was to build lighttpd without this patch. mod_cgi didn't crash, but the php-webpage is not working (with module fast-cgi ist works perfect). It seems that no correct is sent.
Hm, okay, maybe the patch fixed more than memory problems while streaming? Now we built an package from the lighttpd version 1.3.35, for what the patch was written. The problems with the webpage still exists. Has anyone used lighttpd with mod-cgi and php on yocto poky (jethro or fido) succesfully? A workaround could be to use fast-cgi, but we want to save RAM and boot time.

Greetings an thanks for your help

begin:vcard
fn:Norbert Belfin
n:Belfin;Norbert
org:RadioData GmbH;Entwicklung
email;internet:[email protected]
version:2.1
end:vcard