Portable Web Server Using lighttpd 🌱

Things You Will Need

  1. Download lighttpd for Windows Download
  2. Download Microsoft Visual C++ Download
  3. Install Microsoft Visual C++
  4. Extract the lighttpd .zip file
  5. Copy the extracted lighttpd folder to the root of a USB flash drive
  6. Navigate to /lighttpd and double click lighttpd.exe to start the portable web server with the default configuration

Add PHP Support (Optional)

  1. Download the zip version of PHP for Windows Download
  2. Extract the downloaded PHP .zip file
  3. Copy the extracted PHP files to /lighttpd/PHP
  4. Navigate to /lighttpd/conf and edit lighttpd.conf in a text editor
  5. Add the following lines to lighttpd.conf
    cgi.assign = ( ".php" => server_root + "/PHP/php-cgi.exe")
  6. Find static-file.exclude-extensions and add ".php" to the listing
  7. Find index-file.names and add "index.php" to the listing
  8. Find mod_cgi and remove the # to uncomment it
  9. Save the changes to lighttpd.conf
  10. Navigate to /lighttpd and double click lighttpd.exe to start the portable web server with PHP support