0126.html 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <!DOCTYPE html>
  2. <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>Portable Web Server Using lighttpd</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  6. <meta charset="UTF-8">
  7. <meta name="keywords" content="Lighttpd,Windows,Portable,Flash Drive,USB,Coding,On The Go,PHP,HTTP,Web,Install Guide,Free Software,Fun With Code,Portable Software,System Administrator,Web Server Administration,Web Server,Web Developer,Flash Disk,PHP Developer,IT Toolbox,PHP Web Server On A Flash Drive,Portable PHP Web Server,How To,Tutorial,i12bretro">
  8. <meta name="author" content="i12bretro">
  9. <meta name="description" content="Portable Web Server Using lighttpd">
  10. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  11. <meta name="revised" content="04/06/2022 08:42:50 PM" />
  12. <link rel="icon" type="image/x-icon" href="includes/favicon.ico">
  13. <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
  14. <script type="text/javascript" src="includes/js/steps.js"></script>
  15. <link href="css/steps.css" rel="stylesheet" type="text/css" />
  16. </head>
  17. <body>
  18. <div id="gridContainer">
  19. <div class="topMargin"></div>
  20. <div id="listName" class="topMargin">
  21. <h1>Portable Web Server Using lighttpd</h1>
  22. </div>
  23. <div></div>
  24. <div id="content">
  25. <h2>Things You Will Need</h2>
  26. <ul>
  27. <li>A USB flash drive, at least 8 GB <a href="https://amzn.to/3wkR5ju" target="_blank">https://amzn.to/3wkR5ju</a> | <a href="https://amzn.to/3qkrJ1p" target="_blank">https://amzn.to/3qkrJ1p</a> | <a href="https://amzn.to/3Nhu9b9" target="_blank">https://amzn.to/3Nhu9b9</a></li>
  28. </ul>
  29. <ol>
  30. <li>Download lighttpd for Windows <a href="http://lighttpd.dtech.hu/" target="_blank">Download</a></li>
  31. <li>Download Microsoft Visual C++ <a href="https://aka.ms/vs/16/release/vc_redist.x86.exe" target="_blank">Download</a></li>
  32. <li>Install Microsoft Visual C++</li>
  33. <li>Extract the lighttpd .zip file</li>
  34. <li>Copy the extracted lighttpd folder to the root of a USB flash drive</li>
  35. <li>Navigate to /lighttpd and double click lighttpd.exe to start the portable web server with the default configuration</li>
  36. </ol>
  37. <h2>Add PHP Support (Optional)</h2>
  38. <ol>
  39. <li>Download the zip version of PHP for Windows <a href="https://windows.php.net/download" target="_blank">Download</a></li>
  40. <li>Extract the downloaded PHP .zip file</li>
  41. <li>Copy the extracted PHP files to /lighttpd/PHP</li>
  42. <li>Navigate to /lighttpd/conf and edit lighttpd.conf in a text editor</li>
  43. <li>Add the following lines to lighttpd.conf<br />
  44. cgi.assign = ( &quot;.php&quot; =&gt; server_root + &quot;/PHP/php-cgi.exe&quot;)</li>
  45. <li>Find static-file.exclude-extensions and add &quot;.php&quot; to the listing</li>
  46. <li>Find index-file.names and add &quot;index.php&quot; to the listing</li>
  47. <li>Find mod_cgi and remove the # to uncomment it</li>
  48. <li>Save the changes to lighttpd.conf</li>
  49. <li>Navigate to /lighttpd and double click lighttpd.exe to start the portable web server with PHP support</li>
  50. </ol>
  51. </div>
  52. </div>
  53. </body>
  54. </html>