Portable Web Server Using lighttpd
#WebServer #Portable #USBFlashApps #PHP
Full steps can be found at https://i12bretro.github.io/tutorials/0126.html
--------------------------------------------------------------------
Things You Will Need
--------------------------------------------------------------------
- A USB flash drive, at least 8 GB https://amzn.to/3wkR5ju | https://amzn.to/3qkrJ1p | https://amzn.to/3Nhu9b9
01. Download lighttpd for Windows http://lighttpd.dtech.hu/
02. Download Microsoft Visual C++ https://aka.ms/vs/16/release/vc_redist.x86.exe
03. Install Microsoft Visual C++
04. Extract the lighttpd .zip file
05. Copy the extracted lighttpd folder to the root of a USB flash drive
06. Navigate to /lighttpd and double click lighttpd.exe to start the portable web server with the default configuration
--------------------------------------------------------------------
Add PHP Support (Optional)
--------------------------------------------------------------------
01. Download the zip version of PHP for Windows https://windows.php.net/download
02. Extract the downloaded PHP .zip file
03. Copy the extracted PHP files to /lighttpd/PHP
04. Navigate to /lighttpd/conf and edit lighttpd.conf in a text editor
05. Add the following lines to lighttpd.conf
cgi.assign = ( ".php" =≫ server_root + "/PHP/php-cgi.exe")
06. Find static-file.exclude-extensions and add ".php" to the listing
07. Find index-file.names and add "index.php" to the listing
08. Find mod_cgi and remove the # to uncomment it
09. Save the changes to lighttpd.conf
10. Navigate to /lighttpd and double click lighttpd.exe to start the portable web server with PHP support
### Connect with me and others ###
★ Discord: https://discord.com/invite/EzenvmSHW8
★ Reddit: https://reddit.com/r/i12bretro
★ Twitter: https://twitter.com/i12bretro