lighttpd 1.4.9 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.

Bumped up to the newest release of lighttpd, version 1.4.9. You can get it here:

Windows port of version 1.4.9 – lighttpd

Comments on this entry are closed.

  • Roberto Jan 17, 2006 @ 8:33

    Does it work for RubyOnRails ? Would be more than happy to replace webbrick with it, and start / stop it from radails IDE. Anybody done that ?

  • Kev Jan 17, 2006 @ 11:06

    I am not familiar with RoR. A few guys have mentioned it working on Windows here: RoR with lighttpd on Windows – Comments

  • Issac Jan 18, 2006 @ 0:34

    i would like to know if php is supported with the new release eg fastcgi….? because atm i’m using apache and would like something smaller my web server is just 500Mhz.
    if php works with the win32 ver how can i get it working?
    also how come the directory listing layout is different to the linux version
    cheers

  • Kev Jan 18, 2006 @ 8:15

    PHP does work with lighttpd on Windows, but not fastcgi. It is a known bug with PHP on Windows.
    In lighttpd.conf, uncomment line 29 (or there about) so it reads:
    “mod_cgi”,
    and then further down around line 210, you will see ##CGI module. after that line add:
    cgi.assign = ( “php” => “C:/php/php-cgi.exe” )
    This assumes that C:/php is where your PHP installation is. Note that you must use the php-cgi.exe, not the php.exe. You can make sure this is the right one by going to a command prompt and entering the PHP installation directory and typing:
    php-cgi.exe -v
    It should say something like:
    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
    The important line is the first one, it should contain cgi-fcgi.
    I haven’t notice the directory listing looking different between the Windows version and the Linux version…

  • Issac Jan 18, 2006 @ 8:57

    thanks but i still can’t get the php to work, what installation did u use manual or installer for php?

  • Kev Jan 18, 2006 @ 9:16
  • Kev Jan 18, 2006 @ 9:18

    Roberto: check out the mini tutorial I wrote. It should help you out: https://kevinworthington.com/ruby-on-rails-ror-with-lighttpd-on-windows-getting-started/

  • chris hulbert Jan 20, 2006 @ 0:32

    Woo hoo! i managed to get this working with rails and SCGI (not fcgi, theres a difference). Apparently SCGI is just as fast/faster than FCGI so i’m not complaining. And also i’ve got it running as an NT service, which makes it run even sweeter on our dedicated server.
    Let me know if you want more details: chris dot hulbert at gmail

  • Issac Jan 20, 2006 @ 17:34

    I’m still haveing troubles getting php to work at home, i use apache atm, i just want a small web serv. that can run php don’t need mysql as well

  • Kev Jan 21, 2006 @ 18:44

    Issac: If you add this line to your lighttpd.conf file:
    cgi.assign = ( “.php” => “C:/lighttpd/sbin/php-cgi.exe” )
    –and–
    Copy the following two files to the C:/lighttpd/sbin directory:
    https://kevindustries.com/media/kw/files/php5ts.dll
    https://kevindustries.com/media/kw/files/php-cgi.exe
    –then–
    restart lighttpd (or stop then start it) and you should have a working lighttpd + PHP.

  • Issac Jan 21, 2006 @ 19:25

    Thanks that works now, its great is there any difference with php-cgi mode cause when i run my scripts with apache with php i don ‘t get any errors and scripts run fine, but when i’m using lighttpd + php i get tons of errors, its mainly to do with variables i think

  • Kev Jan 22, 2006 @ 1:23

    It might make a difference, between version 4 and version 5 of PHP. Were you using PHP4 or PHP5 with apache?

  • chris hulbert Jan 22, 2006 @ 17:50
  • jlist Jan 24, 2006 @ 20:26

    Using PHP with fastcgi:
    I built PHP in cygwin environment, like I did with lighttpd. The php.exe actually works well via fastcgi with the cygwin version of lighttpd. No cygwin install is necessary, just copy a few Dlls, like Kevin did with lighttpd. I tried the windows version and failed. So the key is to use cygwin version of php, not the native windows version.

  • Kev Jan 25, 2006 @ 6:35

    jlist: I experimented with the cygwinified-PHP but it did not seem to work properly with fastcgi. I’ll try it again though, soon.

  • jlist Jan 25, 2006 @ 11:02

    I can send you the php.exe binary if you need it to test the configuration, etc. If you need it, just send me an email.

  • Kev Jan 25, 2006 @ 11:21

    No thanks, that’s OK. I will compile it on my own.

  • Ray Feb 6, 2006 @ 14:51

    I have described how to get Lighttpd to work without the -D option and as a Windows Service in some detail at:
    http://forum.lighttpd.net/topic/12#556

  • Kev Feb 7, 2006 @ 8:53

    Jan recently mentioned that 1.4.10 will be out soon. I’ll try to work
    your request into that build.