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.
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 ?
I am not familiar with RoR. A few guys have mentioned it working on Windows here: RoR with lighttpd on Windows – Comments
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
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…
thanks but i still can’t get the php to work, what installation did u use manual or installer for php?
I used the installer: http://us3.php.net/get/php-5.1.2-installer.exe/from/a/mirror, for PHP 5.1.2
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/
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
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
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.
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
It might make a difference, between version 4 and version 5 of PHP. Were you using PHP4 or PHP5 with apache?
How to make it work with ruby on rails:
http://wiki.rubyonrails.org/rails/pages/HowToDeployWithLighttpdOnWindows
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.
jlist: I experimented with the cygwinified-PHP but it did not seem to work properly with fastcgi. I’ll try it again though, soon.
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.
No thanks, that’s OK. I will compile it on my own.
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
Jan recently mentioned that 1.4.10 will be out soon. I’ll try to work
your request into that build.