0126.html 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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">
  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. <link rel="icon" type="image/x-icon" href="includes/favicon.ico">
  12. <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
  13. <script type="text/javascript" src="includes/js/steps.js"></script>
  14. <link href="css/steps.css" rel="stylesheet" type="text/css" />
  15. </head>
  16. <body>
  17. <div id="gridContainer">
  18. <div class="topMargin"></div>
  19. <div id="listName" class="topMargin">
  20. <h1>Portable Web Server Using lighttpd</h1>
  21. </div>
  22. <div></div>
  23. <div id="content">
  24. <ol>
  25. <li>Download lighttpd for Windows <a href="http://lighttpd.dtech.hu/" target="_blank">Download</a></li>
  26. <li>Download Microsoft Visual C++&nbsp;<a href="https://aka.ms/vs/16/release/vc_redist.x86.exe" target="_blank">Download</a></li>
  27. <li>Install&nbsp;Microsoft Visual C++</li>
  28. <li>Extract the lighttpd .zip file</li>
  29. <li>Copy the extracted lighttpd folder to the root of a USB flash drive</li>
  30. <li>Navigate to /lighttpd and double click lighttpd.exe to start the portable web server with the default configuration</li>
  31. </ol>
  32. <h2>Add PHP Support (Optional)</h2>
  33. <ol>
  34. <li>Download the zip version of PHP for Windows <a href="https://windows.php.net/download" target="_blank">Download</a></li>
  35. <li>Extract the downloaded PHP .zip file</li>
  36. <li>Copy the extracted PHP files to /lighttpd/PHP</li>
  37. <li>Navigate to /lighttpd/conf and edit lighttpd.conf in a text editor</li>
  38. <li>Add the following lines to lighttpd.conf<br />
  39. cgi.assign = ( &quot;.php&quot; =&gt; server_root + &quot;/PHP/php-cgi.exe&quot;)</li>
  40. <li>Find&nbsp;static-file.exclude-extensions and add &quot;.php&quot; to the listing</li>
  41. <li>Find&nbsp;index-file.names and add &quot;index.php&quot; to the listing</li>
  42. <li>Find mod_cgi and remove the # to uncomment it</li>
  43. <li>Save the changes to lighttpd.conf</li>
  44. <li>Navigate to /lighttpd and double click lighttpd.exe to start the portable web server with PHP support</li>
  45. </ol>
  46. </div>
  47. </div>
  48. </body>
  49. </html>