Lighttpd 1.4.10a For Windows Released

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.

This version incorporates patches from lighttpd.net and fixes file uploads, since it was looking for /var/tmp which does not exist on windows.

Download 1.4.10a here

If you download 1.4.10a, 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.

{ 51 comments }

26 eugene March 6, 2006 at 10:43:52 PM

reg.exe is located in %SYSTEMROOT%\system32 which on most machines would be C:\WINDOWS\system32
I noticed on my machine at home that it wasn’t in my path and if thats the case, you will not have the extra keys and values in the registry. Try copying reg.exe into sbin or adding c:\windows\system32 to your path. If that doesn’t help, feel free to mail me with the any error output of the batch file.

27 Kev March 7, 2006 at 10:05:57 AM

I copied reg.exe to c:\lighttpd\sbin. Then I ran the batch file again. After the ‘completed successfully’ portion of the output, I get:

Error: Too many command-line parameters
Lighttpd is installed as service. Disregard the message about going to control panel.
The system cannot find the batch label specified – end

I think this is due to the ‘goto end’ line, and that makes sense since there’s nothing labelled ‘end’.
Suggestions?

28 chris hulbert March 8, 2006 at 12:17:26 AM

> The LighttpdServer service on Local Computer started and then stopped

Try deleting the log files.
I had the same problems, because i initially launched lighty under my account, and it created log files, and then when i tried to launch it as a service it crashed when opening the logs because it was trying to open them under the system account, when they were owned by my user account.

29 Kev March 8, 2006 at 01:33:13 PM

I get the same thing after deleting the log files.

30 Kev March 8, 2006 at 08:42:43 PM

Maybe it is being cached for a certain amount of time and then discarded. Maybe that’s the obvious, but unfortunately I don’t know how to speed it up and increase its performance. Try the forum on lighttpd.net

31 chris hulbert March 8, 2006 at 08:32:12 PM

Sorry, can’t help you then.

But something that *does* strike me – when i’m using my rails web application, it usually runs really snappy. But occasionally, if i leave it for 10 minutes and don’t access it, the next page i access is really slow, and after that its all snappy again.

Any ideas?

32 ChrisC March 9, 2006 at 03:18:21 PM

Ran into a problem. Tried running it, and nothing happened. Checked the logs, nothing. Rebooted, started, nothing.

I edited the batch start file, removed the exit, then ran it again. Got this error:

C:\lighttpd\sbin>start-lighttpd.bat
8 [main] ? (2416) C:\lighttpd\sbin\lighttpd.exe: *** fatal error – system
shared memory version mismatch detected – 0x75BE0074/0x75BE0096.
This problem is probably due to using incompatible versions of the cygwin DLL.
Search for cygwin1.dll using the Windows Start->Find/Search facility
and delete all but the most recent version. The most recent version *should*
reside in x:\cygwin\bin, where ‘x’ is the drive on which you have
installed the cygwin distribution. Rebooting is also suggested if you
are unable to find another cygwin DLL.

Fixing it is easy enough, but the error is never apparent unless you remove the EXIT from the batch script.

Just an FYI. Thanks for the port!

33 Kev March 9, 2006 at 04:20:01 PM

Yes, this is a known problem. It’s the first thing I ask people to check when lighttpd won’t start for them – if another cygwin1.dll exists anywhere else on the system…

Thanks for the explanation though. And you’re welcome for the port.

34 chris hulbert March 9, 2006 at 05:27:05 PM

I figured out my problem – frigging windows xp (not lighty or scgi or rails) defaults to having its ethernet port go into power-saving mode (ie turn off) if its not used for 15 minutes.
Lighty’s logs weren’t even showing that it had any idea of the requests coming its way – because the requests weren’t even getting past XP.
Grr, at least its fixed now.

35 Graham March 10, 2006 at 07:16:08 AM

Does anyone have any benchmarks or comparisons running lighttpd+SCGI+rails vs. webrick on production applications?

I’ve found that comparatively pages that take handle around 5-10 requests per second now handle between 10-20 requests per second.

36 Kev March 10, 2006 at 08:57:19 AM

chris hulbert: how did you modify the ethernet port so that it does not go into power saving mode?

Graham: I don’t have experience with this. Anybody else…?

37 alex March 11, 2006 at 05:22:38 AM

What about fastcgi and perl (i use ActivePerl)? Please help me make config for simple script:
—-
#!c:/home/perl/bin/perl.exe

use CGI::Fast qw(:standard);

$COUNTER = 0;

while (new CGI::Fast) {
print header;
print
h1(“Fast CGI Test”),
“Invocation number “, b($COUNTER++),
hr;
print end_html;
}
—-

#!c:/home/perl/bin/perl.exe

thanks

38 Sniper Fox March 12, 2006 at 03:35:30 AM

alex: FastCGI is known not to work on lighttpd/win32 right now.

39 Arthur March 12, 2006 at 01:20:39 PM

@Kev: You can set the power saving mode options in the device manager.

40 Kev March 14, 2006 at 03:20:11 PM

This is just a heads-up to anybody following this thread: lighttpd 1.4.11 for windows has been released. Read about it and download it here.

41 Voaneos June 6, 2006 at 03:54:42 AM

1.does Lighttpd 1.4.10a For Windows support those php script encode by zend?

2.does it support mod_bandwidth,if it does not,then where can i get mod_bandwidth.dll

42 Kev June 7, 2006 at 09:54:25 AM

Voaneos: First, as of this writing, the latest version of Lighttpd for Windows is 1.4.11, which you can grab here:
Lighttpd for Windows 1.4.11.

To answer your questions:
1. Assuming that you use a cgi enabled version of PHP, yes, this should work.
2. I don’t see mod_bandwidth included in this release. I would have to compile that option in, but I currently do not have the time. I will do my best to include it in the next version, most likely 1.4.12.

43 henry June 12, 2006 at 11:14:24 AM

I installed Lighttpd for Windows 1.4.11. But when i start lighttpd, it will close soon… I have no another cygwindll.

44 Kev June 12, 2006 at 12:33:21 PM

henry: try copying the following into an MS-DOS prompt (Start–>Run…–>cmd):

C:\lighttpd\sbinlighttpd.exe -f C:\lighttpd\etc\lighttpd.conf

report the output back here if you can’t figure out the problem.

45 henry June 13, 2006 at 10:49:47 AM

output is empty. The logs are also empty(0k)

46 Kev June 13, 2006 at 12:15:23 PM

henry: if there is not an error, lighttpd should be running…

47 henry June 14, 2006 at 08:50:18 AM

But I cannot found the process in task manager.
And cannot connect http://127.0.0.1

48 Kev June 14, 2006 at 10:29:51 AM

henry: have you tried uninstalling and then re-installing lighttpd? Have you tried searching for “cygwin1.dll” on your whole system, to be 100% positive that another file is not present? Can you reproduce lighttpd not working on another Windows system (if you access to another)? Also please indicate which version of Windows you are running.

49 henry June 14, 2006 at 10:56:21 AM

1. yes, uninstall/re-install, still failed
2. yes, no another cygwin1.dll, but I had installed cygwin, but uninstalled
3. I installed it in another windows xp, it can run…
4. my os is XP pro, sp1

50 Kev June 14, 2006 at 12:03:04 PM

henry: I’m not really sure what the problem could be. Maybe you could try to upgrade to SP2. Also, do you have a firewall running, such as ZoneAlarm or Kerio? If you do have a firewall, it might be blocking port 80.

Comments on this entry are closed.

{ 1 trackback }

Previous post:

Next post: