lighttpd 1.4.11 for Windows
If you're new here, you may want to subscribe to my RSS feed and follow me on Twitter for Blog updates, my new software releases, and other tech related announcements.
Thanks for visiting!
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.

















I can’t get past one thing so far: mod_auth is not loading. Upon starting lighttpd i get:
“(plugin.c.165) dlopen() failed for: c:/lighttpd/lib/mod_auth.dll no such file or directory”
However, when I look in c:/lighttpd/lib/ I see mod_auth.dll sitting there! I’ve checked permissions and can’t figure out why it won’t load mod_auth. Any ideas??
- Thanks
ryan: check to see if there’s another cygwin1.dll file on your system. Sometimes having different versions of this file will cause a conflict.
Thanks Kev, the only cygwin1.dll file is in the lighttpd/sbin folder. I’ve tested this on 2 systems, xp & server 2003.. i’ve never installed cygwin on either system. I have access to lots of virtual machines, is there any particular configuration that I should be using?
It is rather a problem that I do not seem to be able to select where it tries to install being as I have no C: drive on my system. Is there any way to tell it to look elsewhere?
ryan: I tested this on XP and 2000 Professional, and both worked ‘out of the box”.
Sam: The way that this version is built relies on C:\ explicitly. There is a post about this on the forum if you’d like to try out their workaround: http://forum.lighttpd.net/topic/197#566 (I haven’t tested this.)
Kev - is there a fix in this version for large file uploads timing out? I still get “mysql lost connection” errors when uploading files larger than about 4mb.
robbie: I’m not sure… Are you getting these errors on 1.4.11? (or an ealrier version?)
kevin,
i’d like to distribute lighty as an integral part of my windows application. the only requirements it has is to run with php, be able to GET and POST, and that’s about it. no other modules are necessary. do you know what the bare minimum dll’s (files) are that need to go out with an installation to make this possible? i’m guessing that everything which is currently part of your download isn’t really 100% required. i’m looking for the bare minimum to have php function. thoughts?
best,
ivan stegic.
ivan: for PHP: php-cgi.exe and php5ts.dll. For lighttpd, try removing everything from the lib directory except for mod_access.dll, mod_accesslog.dll, mod_cgi.dll (to use with php), mod_indexfile.dll, mod_dirlisting.dll, and mod_staticfile.dll. If anything complains, try adding the dll back to lib. Also, if you’d like, you can delete the doc directory and all the .exe’s (except lighttpd.exe) in the sbin directory to save space.
Would there be any problems running Apache and Lighttpd on the same PC going to the same PHP bins folder? I wanted to introduce Lighttpd on one of my production sites for testing, but run it on an alternate port (say 8080) then let the users try it to see which was faster.
Also, I have one other kind of off-the-wall question. How come the website of the guy who makes windows builds of lighttpd runs Apache/2.0.54 (Win32) mod_ssl/2.0.54 OpenSSL/0.9.8 PHP/5.0.5 mod_autoindex_color ??
Sniper Fox: You should be able to run both lighttpd and apache on the same php system using different ports, without any problem. My wife’s PC is the current host for this site and it had apache on it. I’m currently in a transition phase for this site, and will run lighttpd for it when the transition is over.
Hi. Trying to configure php.exe with the fastcgi option but lighttpd returns me the error “(mod_fastcgi.c.1048) the fastcgi-backend c:\php\php.exe failed to start”.
The php.exe is in the right location and the version is (cgi-fcgi).
Do you have any clues about what is happening?
thanks in advance
Sergi: unfortunately, fastcgi doesn’t work on Windows. For php, use cgi. In the lighttpd.conf file, something like:
cgi.assign = ( “.php” => “c:/php/php.exe” )
should work perfectly, assuming that you do have the cgi-fcgi version as you indicated. Good luck.
I am having the same problem as ryan:
—————————-
I can’t get past one thing so far: mod_auth is not loading. Upon starting lighttpd i get:
“(plugin.c.165) dlopen() failed for: c:/lighttpd/lib/mod_auth.dll no such file or directory”
However, when I look in c:/lighttpd/lib/ I see mod_auth.dll sitting there! I’ve checked permissions and can’t figure out why it won’t load mod_auth. Any ideas??
- Thanks
marcio: can you give some details such as:
Windows version?
Upgrade from earlier version of lighttpd?
Ever have Cygwin installed?
Have another cygwin1.dll file on your machine somewhere?
Anything else…
Thanks.
hi kevin, i am not able to get php working under fastcgi as all the instructions say. i saw a post here http://www.kevinworthington.com/?p=109 by sniperfox that says that fastcgi on win32 is known not to work. is this why? is there any other way to get php5 working on windows under lighttpd?? your site is a great resource, and thanks for keeping it up. look forward to reading your response. ivan.
ivan: use cgi instead of fastcgi. I explain it a few comments up in this post: http://www.kevinworthington.com/?p=116#comment-1565
kev: in follow up to the mod_auth question,
I’ve tested this on mostly XP sp2, freshly installed with no extra software (cygwin never installed). I install lighttpd 1.4.11 ( no previous versions installed), edit the conf file to enable mod_auth, save, then start lighttpd and it produces the same error. This has happened on every machine I’ve tried it on (2 desktops at home and 3 machines at work). There has to be something else that I’m overlooking, it’s the ONLY module that does this. any ideas?
FYI, I got an error with the installer due to my C: drive being full and I didn’t see an option to change the installation directory. I love it when programs provide an installation-free zip version that I can just unpack and run.
mod_compress also produces the same results, so it’s only mod_auth & mod_compress. Is there any particular order that modules should be loaded? I read somewhere that order of the mod’s matters in some cases, but I haven’t been able to make any differences.
BTW - I’m super happy with lighttpd.. i don’t want to sound negative about any of this. I wanna help out however I can. — Thanks!!
mod_auth needs cygcrypt-0.dll, but it is not included in lighttpd package.
Sorry for my poor english.
thanks for the reply kev, it works like a charm!
ok, one more question. how many of the sbin/cyg* are __ABSOLUTELY__ and _POSITIVELY_ required for a MINIMAL install like i suggested above? let’s hear which of them i can jettison…
ivan: All the dll files in the sbin directory are required.
i am disappointed that fastcgi isn’t working on the windows build of lighttd. is there any particular reason why this is the case? is there any chance that this will change in the future?
one more thing… are there any good webpages/documentation that discuss adding mysql support to windows/ruby? the pages i’ve found so far have been incomplete at best (i.e. assume unix).
simon: There’s a bug in the PHP version of windows that simply does not work with fastcgi. As for ‘good documentation’, I’ve written a tutorial about getting mysql and ruby working on Windows:
Ruby on Rails (RoR) with lighttpd on Windows (getting started). I’m not sure if it’s ‘good’ but other people have claimed it to be helpful. Let me know how you do.
jackson you’re a genious! I had to install cygwin on another system so I could get cygcrypt-0.dll, but that worked! Mod_auth has loaded with no hang-ups!
cygcrypt-0.dll will be added to the next version to enable mod_auth to work…
For now, anybody that needs mod_auth should download cygcrypt-0.dll from here and save it to the c:\lighttpd\sbin\ directory.
i’am having problem securing my development directory from access outside localhost (while at the same time allowing several convenience settings for localhost). i tried this configuration
$HTTP["url"] =~ “^/dev/” {
$HTTP["remoteip"] != “127.0.0.1″ {
url.access-deny = (”")
}
dir-listing.activate = “enable”
}
but that fails to let any access through to the desired directory. even removing any other setting except the nested condition or trying the last condition example doesn’t help. can anyone give me some hints to solve this riddle?
wolfgang: hmmm… I’m not very handy with configuration of lighty, beyond the basics. Have you tried asking in the lighttpd forum?
Kev: i thought this might be a windows specific problem since the manual explained a very similiar example (which isn’t working too). however i did a quick search in the forum and there are more people having similiar problems - so it seems like a general lighttpd bug.
tnx anyway for you suggestion
It would be great if you could also provide a no-installer version (a zip/rar/7z file with the binaries). I know that the .bat/.conf files have paths which need to be updated, but if we choose this variant we probably know what we are doing.
Hi,
Could someone tell me what dll mod_compress depends on [and, thanks, Jackson, for cygcrypt-0.dll info for mod_auth].
Also, I too would like a non-installer version, if possible.
i would be happy to know which libs mod_compress depends on too, i imagined it would be cygwin’s zlib library (cygz.dll) but it didnt work. thanks.
mod_compress isn’t working properly in the Windows release, as far as I know. The only other module that does not seem to work for me is mod_trigger_b4_dl , but that might be due to a missing dependency somewhere.
As for the ‘non-installer’ release, I’ve put together a zip of version 1.4.11 for experts. This can be dropped into the root of C:\ or where ever you would like. I can not offer any real support for this version, and have made it available as a courtesy. It is just the installer-installed version, zipped up.
When installing lighttpd 1.4.11 for Windows,
Avira Antivir pretend that C:\lighttpd\sbin\is-OD3SI.tmp
has the SPR/Processor.20 Virus.
It concern process.exe
Please see forum
http://forum.zebulon.fr/lofiversion/index.php/t91649.html
for french explication and also
http://www.beyondlogic.org/consulting/processutil/processutil.htm
concerning this.
‘aa00528′: this is a known issue. That is why I tried using taskkill instead, but taskkill isn’t provided by Windows 2000, so I needed to leave it. If you are nervous about it, and running XP or 2003 Server, delete process.exe and use taskkill.exe instead. Read the release notes for version 1.4.11 and also read the comments for 1.4.10a, starting here.
I download Lighty for windows 1.4.11, I installed and configure PHP 5.1.2 + EAccelerator 0.94rc1, the unique problem is that mod_compress refuse to load, lighty says:
2006-04-09 23:29:35: (plugin.c.165) dlopen() failed for: C:/lighttpd/lib/mod_compress.dll No such file or directory
2006-04-09 23:29:35: (server.c.583) loading plugins finally failed
my unique config relative to mod_compress is:
compress.cache-dir = “C:/lighttpd/tmp/”
compress.filetype = (”text/plain”, “text/html”)
compress.max-file-size = 2048
The directory exists, because your installer create it !!! (and ea create cache files here without problem). Can anyone help me please ? By last, sorry for my bad english…..
Sorry, I confuse the title for the last comment with my name…
I found the problem!!!! the file cygbz2-1.dll is needed for mod_compress and is missing !!! Where i can find this file ?
well…. mod_compress depend too for cygz.dll. I put both files in sbin folder and:
1) Lighty refuse to load without -D parameter, errors are:
5 [main] lighttpd 1404 c:\lighttpd\sbin\lighttpd.exe: *** fatal error - unable to remap c:\lighttpd\sbin\cygz.dll to same address as parent(0xD40000) != 0xD50000
4 [main] lighttpd 892 child_copy: loaded dll data write copy failed, 0xC22000..0xC22030, done 0, windows pid 2288388, Win32 error 5
2) With -D parameter Lighty load with 1 warning, and mod_compress work ok (I see gzip files in /tmp folder) but… PHP is now disabled :-/, when access any .php file the server return error 403 and the lighttpd.error.log says:
2006-04-10 00:09:59: (mod_cgi.c.969) fork failed: Resource temporarily unavailable
I think that mod_compress is not-usable in window
mod_compress currently does not work with Windows. (See comment 36 in this post, where I mention this.)
Kev, mod_compress work OK but only if PHP is disabled.I’m probe at work perfect, but without PHP lighty is not a web server.
I had lighttpd 1.4.10 and PHP 5.1.2. I upgraded it to 1.4.11 when it was released, but I had noticed that the PHP scripts run much more slowly. Specifically, it takes a while for the script to start being interpreted. In the 1.4.10 version it was instantaneously. In 1.4.11 it takes about 0.5 seconds to start getting output (even if the .php page contains no PHP code). Static HTML pages are served instantaneously. I don’t use FastCGI. Any ideas what could be wrong?
Another HTML server I use (Abyss Web Server) works fine with the CGI PHP interpreter.
An alternative way to run lighttpd as windows service.
this is my approach ..
1. Download ‘Firedaemon Lite’ from
http://www.unrealadmin.org/forums/showthread.php?t=6486
NOTE 1: The above link points to a previous free version.
NOTE 2: A ‘Pro’ version is available at http://www.firedaemon.com/
2. Install Firedaemon Lite
3. Launch Firedaemon and add the ’start-lighttpd.bat’
That’s all. Lighttpd will be run as a service.
[...] Kevin Worthington has compiled a windows build that allow one to easily install it on windows. [...]
Does your installer modify any registry keys, or is it pretty much standalone?
Thanks!!!
dave: the installer does make a few keys in the registry for uninstallation purposes. If you do not want lighttpd to have any entries in the registry, see the comment further up in this post about a no-installer zip version: http://www.kevinworthington.com/?p=116#comment-1644
awesome, thanks for the quick response and the work!
dave: no problem. Enjoy.
Kevin,
First off, thanks for your awesome work with this release. I’ve just got one question:
Does the windows version of lighttpd currently work with Python+fastcgi? I’ve gotten an install of lighttpd+web.py+fastcgi working in linux, but with the same settings (except the directories of course) in windows, I always get the error:
(mod_fastcgi.c.1048) the fastcgi-backend C:/lighttpd/htdocs/wiki.py failed to start
Any idea what’s up?
Thanks again.
Brian Shih: I have never tried to use python on Windows, however, I see that you are trying to use it with fastcgi. Unfortunately, at this time fastcgi is glitchy on Windows.
I’m not sure if it will work, but if possible, try to use it with cgi rather than fastcgi. I use cgi with php on Windows with lighttpd and it works fine.
Thanks for the reply, I don’t absolutely need fastcgi to work, it just would have been nice.
Thanks again.
Brian: you’re welcome…
After I started lighttpd 1.4.11 for window,
I link to http://localhost, but I can’t get any response.
I need someone to help me solve this problem, thanks a lot.
William, try http://127.0.0.1
Did you change anything in the lighttpd.conf file? If so, paste it into a comment here so I can take a look. (If you’d like email it to me: my first initial and full last name at gmail dot com)
Kevin: Thanks a lot, I tried http://127.0.0.1, it is working now.
No problem, William.
Hey Kev … here’s a HOWTO on getting Lighty up as a Windows service with FireDaemon:
http://forums.firedaemon.com/viewtopic.php?t=231
Does this release require cygwin or without cygwin?
Lamity: I just checked it out from the link on the forum. Thanks.
Jay: All of my releases do NOT require cygwin.
About this fasctcgi issue. I just read all your articles and thier comments for your releases and read that fasctcgi does not work, but I want to try.
Kev, how do we know that php is running with Fastcgi, I mean with phpinfo(); I first installed lighthttpd with cgi and run phpinfo:
Server API : CGI/FastCGI
Then I
- commented “mod_cgi”,
- un- commented “mod_fastcgi”,
- commented “cgi.assign = ( “php” => “C:/php/php-cgi.exe” )”
- added fastcgi.server = ( “.php” =>
( “localhost” =>
(
“bin-path” => C:/php/php-cgi.exe”
)
)
)
- stopped and start lighthttpd
- run phpinfo() again
and I get the same screen :
Server API : CGI/FastCGI
What does this mean?!
Thierry Bothorel
FastCGI does work on Windows with PHP. I haven’t been able to get FastCGI/PHP/MySQL to play nice. To re-iterate, FastCGI/PHP on Windows does work… just not with MySQL also, at the moment…
Hey Kevin,
Lighty on Win32 is an interesting prospect… any chane of a native build or any pointers as to where i can find some help???
regards
Saurav
Saurav Mohapatra: I do not know of a native build, but maybe Jan (the creator of lighttpd) can help you/point you to some information.
Thanks for your great job, Kevin.
Do you have a plan to open your source codes and building instructions?
Kim: I began a HOWTO document a while ago, but it is not complete. I have not had the time to finish it up. So ‘YES’, eventually I will make the build instructions available.
Hello Kev,
been trying lighty but a “fatal error” similar to Gustavo’s. However I’m not trying to enable any mod except for mod_access and mod_accesslog (i.e. I made minimal changes to .conf file just to get it running and serve static pages)
The funny thing is that the error message is constantly changing:
6 [main] lighttpd 4972 C:\lighttpd\sbin\lighttpd.exe: *** fatal error - un
able to remap C:\lighttpd\lib\mod_access.dll to same address as parent(0×710000) != 0xC50000
the leading number can become 5, or the mod reported to create problems can be mod_indexfile.dll, or even cygssl-0.9.8.dll
If I start it with -D, lighty loads and serves quite fine. I wonder what’s going on here?
Furex: see this comment
Thank you Kevin
infact I have a full cygwin installation on the machine.
Although I got it updated to latest release via cygwin’s setup.exe, I keep getting the everchanging remap error.
How can I fix it ?
Furex: the easiest fix is to take the cygwin1.dll from your installation and put it in c:\lighttpd\sbin\ - replacing the cygwin1.dll that I supplied with the lighttpd install.
That worked fine, thank you again Kevin
You’re welcome Furex.
Hi Kevin,
Do you know if the Lighttpd + FastCGI bug is fixed in PHP 5.1.3?
Thanks
Huw
huw: Not to my knowledge.
[...] ?lighttpd????????windows??????????????????? lighttpd 1.4.11 for Windows [...]
I was having the weirdest problems using PHP with this distribution. The output would start in the middle of the HTTP headers. Changing
cgi.assign = ( “.php” => “c:/php/php.exe” )
to
cgi.assign = ( “.php” => “c:/php/php-cgi.exe” )
fixed it, however.
Fennec: Yes, you need the cgi version of php. Some versions of PHP have cgi compiled in as php.exe, but often you need the explicit php-cgi.exe.
Alright. Ive been trying all day now, ive read all the posts and such. I can’t get lighthttpd to work with php and mysql. The modules loaded are mod_rewrite mod_cgi mod_access and mod_accesslog
and my the assigns ive tried are:
cgi.assign = ( “.php” => “C:/php/php.exe” )
cgi.assign = ( “.php” => “C:/php/php-win.exe” )
cgi.assign = ( “.php” => “C:/php/php-cgi.exe” )
and none will work. at best the php pages that use mysql wont load and the ones that load will only load two or three bits of the code. What should i do!?
Nav: First you have to figure out which version of PHP to use. From the command-line, doing: php -v should tell you which version to use, it should have fcgi-cgi as part of the info. (for the ‘-v’ line, substitute php.exe, php-cgi.exe, etc. for ‘php’ and make sure you are in the C:\php directory when you run that command) Once that is determined, try typing the cgi.assign line from scratch. Sometimes when cutting the line of text, the quotes can get mangled.
What im getting when i type php -v in C:/php is
PHP 5.1.4 (cli) (built: May 4 2006 10:35:22)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies
Is it the (cli) part im supposed to be loking at?
i noticed copying the cgi.assign line fooks it up so i did redo it. And i still can’t load the site :/
Nav: you need a version of php that will say cgi-fcgi instead of cli or cgi. Maybe point to php-cgi.exe in your config file, if php-cgi.exe does exist on your machine in the c:/php directory. For example,on my machine I get the following:
C:\PHP>php-cgi.exe -v
PHP 5.1.1 (cgi-fcgi) (built: Nov 27 2005 21:38:47)
Copyright (c) 1997-2005 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2005 Zend Technologies
still doesn’t work :/ given up trying, ty for the time tough
Hi ,
I tried and made a system tray menu for LightTPD windows port. Its available at
Lighty Release 0.1
http://open-source.onestop.net/2006/06/lighty-tray-release-01.html
Please let me know if it was worth the try.
Cheers
I’ve installed lighttpd and configured it, but it refuses to start.
There are no errors returned and nothing logged. Doesn’t appear in the process list.
Any ideas? There don’t appear to be any configuration errors
Brandon: what version of lighttpd, and version of Windows? Did you ever have Cygwin installed on your system? If so, search for cygwin1.dll and replace cygwin1.dll in the C:\lighttpd\sbin directory with your previously installed cygwin1.dll
i just installed the latest version of lighty and php. lighty is lightning fast for html pages, but anytime i try to load a php page, i got a 403 - forrbidden error.
i used the PHP 5.1.4 installer from http://www.php.net/downloads.php - is any further config of php required?
i tried both:
cgi.assign = ( “.php” => “c:/php/php-cgi.exe” ) and
cgi.assign = ( “.php” => “c:\php\php-cgi.exe” )
output from php-cgi.exe -v:
PHP 5.1.4 (cgi-fcgi) (built: May 4 2006 10:35:07)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies
thanks for your help,
__Rick
Rick: did you uncomment mod_cgi at the top of the lighttpd.conf? That is probably your problem. Let me know…
I’ve installed this version with php as CGI, but it still vulnerable to the downoload code bug adding a trailing dot and space to the url. It’s me or it is also for you guys?
Kev,
ok, it works now. i knew it was going to be something simple.
thanks for the suprisingly quick reply,
__Rick
Furio: Can you link any information about this bug? I am not aware of it currently.
Rick: I’m glad it works for you. You’re welcome.
Kev, I have the same problem that Brandon (about lighttpd not appearing in the process list).
The thing is, I tried installing Cywin (don’t ask me why, since I don’t even know exactly what it is >_>), I successfully did it, and since I didn’t find an uninstall option, I just deleted it.
Today when I tried starting lighttpd, it just doesn’t run. Please help me, I don’t find any other cygwin1.dll on my system, and I’ve tried reinstalling and reinstalling lighttpd with no aval. I beg you, give me some alternatives to solve this little issue.
Thanks beforehand.
Andrew: from the Start menu, go to run and type in ‘cmd’ (no quotes) and hit Enter. Then type in ‘C:\lighttpd\sbin\lighttpd.exe -f C:\lighttpd\etc\lighttpd.conf’ (also without quotes) and report any errors that you might get here on this site. Also mention your Windows version here and any service packs that you might have.
Well, I didn’t even get a single error. It was just like if I had just pressed Enter.
I’m on Windows XP SP2, and up-to-date (critical fixes and all that stuff). I think last time I updated was yesterday, so maybe’s got something to do with it.
Thank you.
PS: HEEEEEEEEEEEEEEELP! This is making me want to reinstall Windows just for that. It was working so flawlessly…
Andrew, does it show up in the task manager at all? Also have you tried turning off your firewall temporarily to see if that has any effect?
No, it doesn’t show up at all. Using the normal “Start lighttpd” just makes it so that ping and cmd appear, but not lighttpd.
About the Firewall, it’s disabled (actually, my choice) by default. The thing is, I had been working with lighttpd for a while, then I just shut it down for some days, installed Cygwin to see what it was all about, didn’t know shit, then deleted it, and tried lighttpd again, and poof, no good.
Well, if there doesn’t seem to be any apparent solution, then I’ll just restrain myself from using it for a while… at least until I reinstall Windows.
Thank you for your support, and now given the facts that some people have this problem, there should be a warning for the people trying to install Cygwin. I guess it lets a reference to the DLL to its installation path, which, in this case, isn’t where the cygwin1.dll now resides.
Thanks again.
Andrew, having Cygwin and lighttpd is not necessarily a problem. I have both installed on my system. What is a problem is when the cygwin1.dll is a different version between the two installations. Make sure to search for cygwin1.dll on your whole system, and replace any versions of it with the one installed by lighttpd.
i had the same c:/lighttpd/lib/mod_auth.dll error but for me it was easy to fix i just stop another webserver that i had running and that was all…
so yoy just try to find wich service that you have running in your windows is using de 80 port and stop it.
I’m getting a 403-Forbidden error when I try to load awstats on my server. I finally discovered that if I comment out mod_compress from loading, then the stats page loads and works fine, but as soon as I add mod_compress back in, I get the error.
Thanks for any help
Michael, I don’t think that mod_compress is working properly in the Windows release of lighttpd. Click here to seee an earlier comment I made, above
I had mod_compress working good without having mod_cgi enabled, but together they wouldn’t work correctly. So I think it’s just a combination of the two. I saw info on a mod_deflate that someone else made, is there any plans of porting this over to the windows version?
Michael, it may be available in the next version after 1.4.11.
Kev,
I had cygwin and lighty for win installed on my XP machine previously. But after I uninstalled cygwin, lighty stopped working. I checked it with Task Manager, and found that when after start-lighttpd, the lighttpd.exe process appears in the task list and then exit.
Is there any thing wrong? I think lighty should work even without cygwin. Any suggestion?
Kev,
I had cygwin and lighty for win installed on my XP machine previously. But after I uninstalled cygwin, lighty stopped working. I checked XP’s Task Manager, and found that when “start-lighttpd”, the lighttpd.exe process appears in the task list for a few seconds and then exit.
Is there any thing wrong? I think lighty should work even without cygwin. Any suggestion?
sorry, the page stopped responding after my first post, so I simply retyped it once … not spam
Riobard: please look at this comment from above, and follow the same directions.
Kev,
Yes I did do as the directions above before I made the post. I searched all cygwin1.dll on my system and deleted them. I even searched registry to remove anything related to it. Lighty doesn’t start up after I did all that. Any other idea?
Riobard: you deleted _ALL_ cygwin1.dll files from your system? You still need the one that is supplied with lighttpd, in the C:\lighttpd\sbin directory in order for lighttpd to work. Re-installing the package should work, make sure you make a bcakup first though.
Hi Kev,
Its been sometime and I have been running Lighty on a Windows 2000 server box for serving my php pages (wiki pages) in the intranet.
But I have observed a problem with pages either not loading quickly or completely stopped when I try and download some large files simultaneously.
Once I start the downloads of these files the entire site is crippled and no pages are served till the downloads are over.
Am not sure where the problems is. The files are hosted in a folder in the web root folder and they are indexed with a php script before being shown as links on a web page.
Can you help me with identifying the problem?
I checked the memory and CPU usage for Lighty and did not find anything out of place there.
The snapshot from the status page (which opens up after few minutes as the downloads are still on) is as below,
18350080/58425042 write 366 MVI_0235.AVI 18874368/55156046 write 385 MVI_0237.AVI 18874368/53570316 write 381 mvi_0236.avi
enabled: mod_access, mod_status, mod_cgi, mod_ssi, mod_accesslog
Thanks in advance.
Hi Kevin:I have been using lighty for sometime now to serve the wiki pages in my intranet. Lighty is running on a Windows 2000 box with 2GB RAM.
But I observed recently that while large files (video) are downloaded the site becomes slow and pages don’t get loaded until the downloads are complete or are extremely slow to come up in the browser.
Is there a way I can find out the problem? I enabled the server-status page and was not able to figure out the cause of this.
Any help is appreciated.
Thanks
1. Run InstSrv with following arguments: InstSrv lighttpd SrvAny.exe.
2. Run regedit and navigate to this key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lighttpd.
3. Create subkey ‘Parameters’.
4. Add ‘Application’ string value with exact fully qualified path:
‘C:\lighttpd\sbin\lighttpd.exe’.
5. Add ‘AppParameters’ string value with following data:
‘-f C:\lighttpd\etc\lighttpd.conf’.
6. Run the service using the standard Windows Services panel.
Hope this helps
I am having a similar problem. I have been playing with cygwin recently. Everything worked fine while cygwin was installed (it even worked fine with cygwin in the path).
Now it is gone (and so have all the other cygwin1.dlls apart from the one bundled with lighty).
If I run lighty with -D everything works fine.
How come mod_webdav.dll is not present on the binary install?
lighttpd-1.4.11-win-setup.exe
C:\lighttpd\lib\
Does not contain the file on my install
on the list of files in the “installed binaries and support files” for the cygwin version the file is listed:
Sat Jan 21 10:48:18 2006 19456 usr/lib/lighttpd/mod_webdav.dll
Igor: If I recall correctly, webdav support was not compiled into this version.
lighttpd for Windows doesn’t work when using the Comodo Personal Firewall….. why???
Juansa: the firewall is most likely blocking the port that lighttpd is listening on which is port 80 by default. Open up that port on the firewall and it should work.
Thank You Kev,
Do you know of a workaround or any way to make WebDav work under windows? any idea about supporting it on future. or how to get an older version of mod_webdav.dll file?
Thank you again. IL
Igor: It has to be compiled in, and so far it simply has not been. It may be available in the next version of lighttpd for windows.
Same problem as huwnet. I had cygwin installed a few months back but had uninstalled it. lighttpd doesn’t start using the startup script. However, adding the -D flag seems to allow it to start up.
“Kev: the firewall is most likely blocking the port that lighttpd is listening on which is port 80 by default. Open up that port on the firewall and it should work.”
i dont think is that so… because the problem i has was something like “fatal
error - couldn’t release memory….mod_access.dll” even when i turned the firewall off (allow all) …and when i uninstalled the comodo lighttpd works just fine. but i need a firewall and comodo is the best free firewall i found.
thanks.
OK, so I downloaded lighty and php and installed it successfully on my local winxp machine in under 5 mins. Great job
Then I go to do it for real on a win2kpro (sp4) machine and i get some behavior similar to what a couple others have posted:
i start lighty and nothing happens. no errors, nothing in the task manager, nada. I’ve tried it with the default config and a few variations but am getting absolutely nowhere fast. from cmd, when i try the variations of the startup line detailed above, i press return and am immediately returned to a prompt
anyone solved their previous problems or have a new idea for me to try? i’ve doublechecked and the cygwin file i have is the one that comes with this lighty distro
thanks in advance
dan
dan: did you try adding the -D option to the start-lighttpd.bat file? It should say:
lighttpd.exe -f ..\etc\lighttpd.conf -D
Executing the above command from a command prompt (C:\>) in the C:\lighttpd\sbin\ directory can quickly verify this. If that is not the problem, other errors will also be displayed by using this method. Good luck, and let me know how it works out.
ah thanks for the correct syntax for th -D option but still no joy… from the command line, lighttpd.exe -f ..\etc\lighttpd.conf -D simply returns me back to the prompt
i mean, i should definitely see lighttpd.exe in task manager if its startin correctly, right? thanks again for your assistance
dan
dan: yes, it should show up in the task manager. I’m not sure why this keeps returning you back to the prompt. If you have a firewall, disable it momentarily or be absolutely positive that port 80 is open and allowing traffic in and out.
well, no firewall… tried ports 80, 81 and some high numbered ones in the 8000 range. ive got a SECOND win2kpro box, guess i’ll try it on there see if its consistent at all
thnx for the help, i’ll post back
dan
ok, much better results on the second box (which is actually the intended target). i edited the default configuration to use port 8888, as this is a production web server, and doubleclicked the .bat file… it started, saw it in the task manager processes list
however, the firewall gave me what i thought was an odd message:
‘LIGHTTPD.EXE’ from your computer wants to send UDP datagram to foo.bar.com [127.0.0.1], port 3665
regardless, i said permit… and then it just seemed to loop from sending/receiving, with the firewall poppin up every 2 seconds. so i stopped lighty and tried it from the command line, and i received a similar message about a UDP datagram on a different 3000 range port
what exactly is goin on here and what ports do i need to open in order for this to run correctly?
thanks again
dan
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, 0×3D2
000..0×3D2030, 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
[...] lighttpd 1.4.11 for Windows [...]
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