Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 76575 - www-servers/lighttpd version bump to 1.3.7
Summary: www-servers/lighttpd version bump to 1.3.7
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Web Application Packages Maintainers
URL:
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2005-01-03 16:34 UTC by Tarmo Tänav
Modified: 2005-02-14 04:34 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
the ebuild (lighttpd-1.3.7.ebuild,2.30 KB, text/plain)
2005-01-03 16:35 UTC, Tarmo Tänav
Details
new init script (lighttpd-1.3.7.initd,644 bytes, text/plain)
2005-01-03 16:36 UTC, Tarmo Tänav
Details
updated patch for php support (lighttpd-1.3.7-php.patch,1.32 KB, patch)
2005-01-03 16:36 UTC, Tarmo Tänav
Details | Diff
lighttpd-1.3.7.ebuild (lighttpd-1.3.7.ebuild,3.47 KB, text/plain)
2005-01-07 05:31 UTC, Andreas Korthaus
Details
spawn-fcgi-1.3.7.conf (spawn-fcgi-1.3.7.conf,1.09 KB, text/plain)
2005-01-07 05:32 UTC, Andreas Korthaus
Details
spawn-fcgi-1.3.7.initd (spawn-fcgi-1.3.7.initd,1.49 KB, text/plain)
2005-01-07 05:32 UTC, Andreas Korthaus
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tarmo Tänav 2005-01-03 16:34:25 UTC
I've bumped the lighttpd 1.3.5 ebuild to 1.3.7 and wrote a new init script and fixed the patch which enables fastcgi for php-cgi. I also "cleaned and updated" the ebuild.

Reproducible: Always
Steps to Reproduce:
Comment 1 Tarmo Tänav 2005-01-03 16:35:37 UTC
Created attachment 47533 [details]
the ebuild
Comment 2 Tarmo Tänav 2005-01-03 16:36:21 UTC
Created attachment 47535 [details]
new init script
Comment 3 Tarmo Tänav 2005-01-03 16:36:59 UTC
Created attachment 47536 [details, diff]
updated patch for php support
Comment 4 Andreas Korthaus 2005-01-07 05:30:19 UTC
I created an ebuild based in this bug, with the following changes:

* changed URI from http://jan.kneschke.de/projects/lighttpd/ to http://www.lighttpd.net
* moved spawn-fcgi into lighttpd ebuild (as lighttpd did with 1.3.6: http://www.lighttpd.net/download/NEWS.html), removed spawn-fcgi dependency, added spawn-fcgi.conf and spawn-fcgi.initd to files/
* create a lighttpd usergroup, not only lighttpd user
* changed value of "server.username" and "server.groupname" to "lighttpd" in lighttpd.conf (so lighttpd runs under its own user:group)
* changed SPAWNFCGI to "/usr/bin/spawn-fcgi" and GROUPID to "lighttpd" in spawn-fcgi.conf (so php-cgi runs unter its own user:group, too)
* added ipv6 USE-flag

a listing of lighttpd/files/:

digest-lighttpd-1.3.7
lighttpd-1.1.8-gentoo.diff (from old ebuild)
lighttpd-1.3.7-php.patch (from this bug-report)
lighttpd-1.3.7.initd (from this bug-report)
spawn-fcgi-1.3.7.conf (from spawn-fcgi ebuild, file attatched)
spawn-fcgi-1.3.7.initd (from spawn-fcgi ebuild, file attatched) 

only spawn-fcgi-1.3.7.conf was changed as mentioned above. 
Comment 5 Andreas Korthaus 2005-01-07 05:31:56 UTC
Created attachment 47839 [details]
lighttpd-1.3.7.ebuild
Comment 6 Andreas Korthaus 2005-01-07 05:32:29 UTC
Created attachment 47840 [details]
spawn-fcgi-1.3.7.conf
Comment 7 Andreas Korthaus 2005-01-07 05:32:54 UTC
Created attachment 47841 [details]
spawn-fcgi-1.3.7.initd
Comment 8 Tarmo Tänav 2005-01-07 07:37:12 UTC
Andreas, why do you want to move spawn-fcgi into lighttpd instead of just letting lighttpd depend on spawn-fcgi? If you really need to change spawn-fcgi configuration file(s) then you can easily do this in the lighttpd ebuild.
Comment 9 Andreas Korthaus 2005-01-07 07:42:29 UTC
because the lighttpd author does the same with release 1.3.6: http://www.lighttpd.net/download/NEWS.html 

Or do you find a link to spawn-fcgi on http://www.lighttpd.net/download/ , yet?

Comment 10 Tarmo Tänav 2005-01-07 07:53:50 UTC
Oh, didn't notice that. But then, shouldn't lighttpd ebuild block spawn-fcgi because obviously it contains the same functionality and both can't work together ?
Comment 11 Andreas Korthaus 2005-01-07 08:09:47 UTC
I'm not an experienced ebuild-developer ;-)
The ebuild I created works for me, if you have any ideas to improve it change it!

One Problem I have: /etc/init.d/lighttpd starts /etc/init.d/spawn-fcgi, but if I stop /etc/init.d/lighttpd, /etc/init.d/spawn-fcgi does not stop.

Or do you have an idea how to bind the fcgi-processes (php-cgi) to a specifc IP? 

And php-cgi should be compiled with 

--enable-discard-path 
--enable-force-cgi-redirect

as descriped in lighttpd-docs([1]) and security-chapter of the php-manual ([2], [3])

[1]: http://www.lighttpd.net/documentation/fastcgi.html#preparing-php-as-a-fastcgi-program
[2]: http://www.php.net/manual/en/security.cgi-bin.php#security.cgi-bin.attacks
[3]: http://www.php.net/manual/en/configure.php#configure.enable-discard-path
Comment 12 Aaron Walker (RETIRED) gentoo-dev 2005-02-14 03:39:21 UTC
1.3.10 is in CVS.  Please test, especially the PHP and spawn-fcgi stuff, as that is an area I'm not as experienced in.

Btw, Tarmo, *PLEASE* make sure files you attach are in a unix file format, *not* DOS (uses \r\n instead of \n for EOL).  I spent an hour or two last night trying to figure out why depscan.sh was going crazy last night and my entire init system was borked ;)
Comment 13 Tarmo Tänav 2005-02-14 04:00:29 UTC
Aaron, the init script I submitted does not contain any CRLF, but the ones submitted by Andres do ;)
Comment 14 Andreas Korthaus 2005-02-14 04:34:00 UTC
I'm sorry, my fault. I did not think about it, I will change this in future.