• Increase font size
  • Default font size
  • Decrease font size

how to install lighttpd on windows

 

Accessing http://localhost/, you should get a page that lists all PHP variables and information.
Please note that FastCGI doesn't work on Windows at this time. Good luck!

PHP IN FAST CGI MODE
Download the complete WLAMP package or the latest LightTPD build for Win32 from from http://wlmp.dtech.hu/down_lighty.php?lang=en 
If you choose the later you must get the latest PHP package from http://www.php.net/downloads.php
Unpack the distribution so you have a directory structure similar to this:
c:\LightTPD
c:\PHP
Goto c:\LightTPD\lighttpd-inc.conf if you use the default setup or edit your lighttpd configuration file and uncomment the line "mod_fastcgi" and add the following line:

fastcgi.server = ( ".php" =>( "localhost" =>("host" => "127.0.0.1","port" => 521 )))

Host and port points to the ip address and port where the fastcgi daemon will be listening. I have not tried this, but i guess it should work if you have two machines and you put the fastcgi daemon in other machine. In the above lines Lighttpd and PHP FastCGI are on the same machine.

Next start the php-cgi daemon from the php directory:
c:\php\php-cgi.exe -b 127.0.0.1:521
And then (re)start the LightTPD web server.
You can put your PHP files in C:\lighttpd\htdocs - To test PHP, just create a file named index.php, save it in the Lighttpd root directory (C:\lighttpd\htdocs) and paste this content into this file:

Accessing http://localhost/, you should get a page that lists all PHP variables and information.

If not, you may have to explicitly set the docroot.
If all is OK you could write a batch file to start/stop the server and the PHP daemon at the same time. Please note that you should have the RunHiddenConsole.exe in your path, also this files should be placed in c:\LightTPD
Start-LightTPD.bat

@ECHO OFF ECHO Starting PHP FastCGI... set PHP_FCGI_MAX_REQUESTS=0 RunHiddenConsole.exe ..\PHP\php-cgi.exe -b 127.0.0.1:521 ECHO Starting LightTPD... ECHO. lighttpd.exe -v ECHO. lighttpd.exe -f conf\lighttpd-srv.conf -m lib EXIT

Stop-LightTPD.bat

@ECHO OFF
ECHO Stopping LightTPD...
bin\process.exe -k lighttpd.exe >nul
ECHO Stopping PHP FastCGI...
bin\process.exe -k php-cgi.exe >nul
ECHO.
EXIT

 Lighttpd 1.4 on Unix systems

 How to Install Lighttpd with PHP5 and MySQL on Ubuntu 9.10



 

Add comment


Security code
Refresh

Category

Login Form