[yocto] lighttpd + mod_cgi

Norbert Belfin nbelfin at radiodata.biz
Thu Nov 19 01:39:10 PST 2015


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: nbelfin.vcf
Type: text/x-vcard
Size: 138 bytes
Desc: not available
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20151119/981f3106/attachment.vcf>


More information about the yocto mailing list