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.
Did you enjoy this article? Please subscribe to my feed to receive all the FREE updates via RSS or Email - your choice!





{ 140 comments }
← Previous Comments
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?
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.
My drive letter is I not C!!!! please help me. thanks.
quinn: I haven’t tested this myself, but others claim that it works: http://forum.lighttpd.net/topic/197#566
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
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]
B1t Hunt3r: read the 2 comments right before yours for some hints.
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
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
Rohit: I don’t think that mod_proxy works on the Windows port.
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
does not work in Vista RTM [the start .bat crashes]
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.
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.
“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
← Previous Comments
Comments on this entry are closed.
{ 3 trackbacks }