- Download the lighttpd setup file from here. I chose the Setup Wizard (.exe) version.
- Double-click on the downloaded executable to start the installation.
- When the installation is done go to your lighttpd directory(by default its C:\program files\lighttpd) and run TestMode.bat A console window should open to indicate the server is started.
- Go to http://localhost this should show a lighttpd test page.
Setting Up Lighttpd
- Download php .zip package from here
- Extract it to C:\php
- Edit lighttpd-inc.conf (i.e. “C:\Program Files\LightTPD\conf\lighttpd-inc.conf”) with the following:
- Remove the comment tag(#) for "mod-cgi" (Line 20)
- Add this line (assuming that PHP was installed on C drive):
- cgi.assign = ( “.php” => “C:/php/php-cgi.exe” )
- In your PHP directory rename the file php.ini-recommended to php.ini and edit php.ini with the following:
- short_open_tag = On
- display_errors = On
- doc_root = “C:\Progra~1\LightTPD\htdocs”
Enabling PHP
- You can test php by creating a file containing:
Testing PHP
<?php phpinfo(); ?>
Place the file in your htdocs directory (i.e. “C:\Program Files\LightTPD\htdocs”), open up your browser and browse to the page. It should show you the php info page.


Mon, Apr 6, 2009
Windows