Windows ¶
First you need to install Lighttpd for Windows. Then you need to edit C:\lighttpd\etc\lighttpd.conf, uncomment the "mod_cgi" line and add this line:
cgi.assign = ( ".php" => "c:/php/php-cgi.exe" )
Be careful, there cannot be any space in the path to PHP-CGI in the above snippet. Save lighttpd.conf and restart lighttpd. Open your browser and go to
http://localhost/, you should have a welcome page. 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:
<?php
phpinfo();
?>
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!