lighttpd 1.4.11 for Windows

PLEASE NOTE: Native Lighttpd Windows builds are available at http://en.wlmp-project.net/
The last available Lighttpd for Windows build that I created using Cygwin was Lighttpd for Windows 1.4.17.
Updated September 29, 2009.

Although the source has been available for a few days, lighttpd 1.4.11 for Windows is finally here. Besides the upstream fixes from lighttpd.net, a few minor changes exist in this release. The most major to note is that an alternative stop batch file is now available for XP (and up) users. It is called stop-lighttpd2.bat and can directly replace the regular stop batch file. As usual read the release notes (in the installer) before installing/upgrading. Regarding the new stop batch file, from the readme.txt:

stop-lighttpd2.bat is an alternate stop batch file for Windows XP which doesn’t need process.exe. It uses Windows’ taskkill.exe instead.

Download: lighttpd-1.4.11-win-setup.exe

If you download this version, please Digg it.. Thanks.

Post to Twitter Post to Delicious Post to Digg Post to Facebook Post to MySpace Post to Reddit Post to StumbleUpon

Did you enjoy this article? Please subscribe to my feed to receive FREE updates via RSS or Email.

{ 140 comments }

126 rob September 10, 2006 at 08:21:02 PM

Hey,

I’m getting the same errors as the people are getting who have differing cygwin1.dll files installed, but I’ve never installed cygwin and don’t have any other cygwin1.dll files apart from the one in my sbin directory.

The error I get is as follows:


61 [main] lighttpd 3044 C:\lighttpd\sbin\lighttpd.exe: *** fatal error - co
uldn't release memory 0xA34000(1032192) for 'C:\lighttpd\lib\mod_access.dll' ali
gnment, Win32 error 487
44 [main] lighttpd 632 child_copy: loaded dll data write copy failed, 0x3D2
000..0x3D2030, done 0, windows pid 2288388, Win32 error 5
Starting lighttpd
.
.
.

…after which lighttpd.exe doesn’t appear in my processes list, and http://127.0.0.1/ is unreachable.

If I add the -D switch to the command line, I get no output on the command line when running start-lighttpd.bat, but lighttpd.exe starts, is in my process list, and I can reach http://127.0.0.1/ but I can’t run PHP files, as I get a 403.

Any ideas?

127 Kev September 11, 2006 at 10:09:11 AM

rob: When using the -D option, you won’t see any output after you hit enter. This is normal behavior. As for PHP, it sounds like it is misconfigured. Please post the section of your lighttpd.conf that pertains to PHP, and also make sure that you are using the cgi-fcgi version of php (or php-cgi.exe). Look at my comment above http://www.kevinworthington.com/?p=116#comment-2224 for directions on how to check the version, if you didn’t already know.

128 quinn September 11, 2006 at 10:39:12 AM

My drive letter is I not C!!!! please help me. thanks.

129 Kev September 11, 2006 at 05:44:19 PM

quinn: I haven’t tested this myself, but others claim that it works: http://forum.lighttpd.net/topic/197#566

130 Sandman September 28, 2006 at 10:11:27 AM

quinn, please could you test this out to see if it will work:

I think your problem could be solved using SUBST,
a standard Windows NT/XP command line tool.

SUBST:
- Substitute a drive letter for a network or local path.

Example:
- At the cmd prompt type the following.

MD I:\virtC
SUBST C: I:\virtC

That will create a folder on your I: drive named ‘virtC’,
then “mount” that folder as a virtual hard drive with the drive letter C:

This solution will not work for anyone who already has a C: drive.
As I understand your problem quinn, it should do the trick.
I unfortunately haven’t had the time to test this yet,
or thoroughly check whether it has been tried before.

I’d be interested to know if it works.

Regards
Markus

131 B1t Hunt3r October 3, 2006 at 10:08:53 AM

I am tring to run lighty from a diffrent location c:\server\httpd instead of c:\lighttpd\ and it seems that lighty is configured to run only from c:\lighttpd\. When i try to run start-lighttpd.bat from \server\httpd\ i get erroe:

2006-10-03 17:06:19: (plugin.c.165) dlopen() failed for:
C:/lighttpd/lib/mod_indexfile.dll No such file or directory
2006-10-03 17:06:19: (server.c.583) loading plugins finally failed

Is there any workaround…

If i can get it working from un-default location then i will switcjh to lighty…

Regards,
Ishan Jain [B1t Huntt3r]

132 Kev October 3, 2006 at 01:45:28 PM

B1t Hunt3r: read the 2 comments right before yours for some hints.

133 B1t Hunt3r October 4, 2006 at 02:05:03 PM

Well i know it will work with thoose two methods but i want to put all my servers in one folder, don’t want som much to be in c root…

regards,
B1t Hunt3r

134 Rohit October 11, 2006 at 01:17:13 PM

I downloaded “lighttpd 1.4.11 for Windows” and installed on Windows XP Professional. I am trying to use mod-proxy on windows and get the below error.

2006-10-11 22:10:33: (mod_proxy.c.1042) proxy-FDEVENT_ERR, but no HUP 9
2006-10-11 22:11:03: (mod_proxy.c.1042) proxy-FDEVENT_ERR, but no HUP 9
2006-10-11 22:11:59: (mod_proxy.c.1042) proxy-FDEVENT_ERR, but no HUP 9
2006-10-11 22:12:12: (mod_proxy.c.1042) proxy-FDEVENT_ERR, but no HUP 9

Can someone help me to decipher this or let me know if there are known issues with mod_proxy on windows.

Rohit

135 Kev October 12, 2006 at 09:13:21 AM

Rohit: I don’t think that mod_proxy works on the Windows port.

136 Dimit October 20, 2006 at 02:19:29 PM

For everyone that had CYGWIN installed and then removed!!!
CYGWIN do not remove its settings from registry. From regedit delete keys HKCU/software/Cignus_solutions and HKLM/sfotware/Cygnus_solutions. MAGIC. Every thing is ok. Sry for the bad English.

Hope I helped

137 Nikos Kouremenos December 1, 2006 at 09:02:39 PM

does not work in Vista RTM [the start .bat crashes]

138 Kev December 1, 2006 at 09:46:56 PM

Nikos: I do not have a copy of Vista to build and test lighttpd. If you want to buy me a copy, I will gladly build and test it on that OS.

139 lightyguy July 22, 2007 at 10:42:36 AM

This is big big hack. Is there is a native port of lighty to windows? Without mucking around with cygwin or junctions. Junctions are not even an official documented feature. Vista supports linking, but not 2003.

Thanks.

140 Kev July 22, 2007 at 11:04:27 AM

“lightyguy”: there is experimental native support for the 1.5.x branch of lighttpd. I have been unsuccessful building 1.5 native on windows up to this point. Your best bet is to check out the documentation on http://www.lighttpd.net

Comments on this entry are closed.

{ 3 trackbacks }

Previous post:

Next post: