0046.html 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <!DOCTYPE html>
  2. <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>Web Based File Management with PHP and Tiny File Manager</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  6. <meta charset="UTF-8">
  7. <meta name="keywords" content="web server,apache httpd,apache,web developer,system administrator,PHP,File Manager,Web Based,Tiny File Manager">
  8. <meta name="author" content="i12bretro">
  9. <meta name="description" content="Web Based File Management with PHP and Tiny File Manager">
  10. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  11. <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
  12. <script type="text/javascript" src="includes/js/steps.js"></script>
  13. <link href="css/steps.css" rel="stylesheet" type="text/css" />
  14. </head>
  15. <body>
  16. <div id="gridContainer">
  17. <div class="topMargin"></div>
  18. <div id="listName" class="topMargin">
  19. <h1>Web Based File Management with PHP and Tiny File Manager</h1>
  20. </div>
  21. <div></div>
  22. <div id="content">
  23. <h2>Download and Setup Tiny File Manager</h2>
  24. <ol>
  25. <li>Download Tiny File Manager <a href="https://github.com/prasathmani/tinyfilemanager/releases" target="_blank">Download</a></li>
  26. <li>Extract the Tiny File Manager files</li>
  27. <li>Copy TinyFileManager.php to Apache install directory/htdocs/filemanager</li>
  28. <li>Rename TinyFileManager.php to index.php</li>
  29. <li>Edit index.php in a text editor</li>
  30. <li>Find $use_auth and set the value to false</li>
  31. <li>Save</li>
  32. <li>Open a web browser and navigate to https://DNSorIP/filemanager</li>
  33. </ol>
  34. <h2>Customizing Root Location and Authentication</h2>
  35. <ol>
  36. <li>Optionally, Edit Apache install directory/htdocs/filemanager/index.php</li>
  37. <li>Find $root_path and edit the value to limit the scope of the file manager</li>
  38. <li>Save index.php</li>
  39. <li>Navigate to the Apache install directory/conf in Explorer</li>
  40. <li>Edit httpd.conf in a text editor</li>
  41. <li>Find the authnz_ldap_module and make sure it is enabled by removing the # at the start of the line
  42. <p>LoadModule authnz_ldap_module modules/mod_authnz_ldap.so</p>
  43. </li>
  44. <li>Find the ldap_module and make sure it is enabled by removing the # at the start of the line
  45. <p>LoadModule ldap_module modules/mod_ldap.so</p>
  46. </li>
  47. <li>Create a Location block to enable LDAP authentication for the specified directory
  48. <p>&lt;location /filemanager&gt;<br />
  49. # Basic authentication with LDAP against MS AD<br />
  50. AuthType Basic<br />
  51. AuthBasicProvider ldap<br />
  52. <br />
  53. # AuthLDAPURL specifies the LDAP server IP, port, base DN, scope and filter<br />
  54. # using this format: ldap://host:port/basedn?attribute?scope?filter<br />
  55. AuthLDAPURL &quot;ldap://i12bretro.local:389/DC=i12bretro,DC=local?sAMAccountName?sub?(objectClass=user)&quot; NONE</p>
  56. <p> # The LDAP bind username and password<br />
  57. AuthLDAPBindDN &quot;readonly_svc@i12bretro.local&quot;<br />
  58. AuthLDAPBindPassword &quot;Read0nly!!&quot;<br />
  59. LDAPReferrals Off<br />
  60. AuthUserFile /dev/null<br />
  61. <br />
  62. AuthName &quot;Restricted Area [i12bretro.local]&quot;<br />
  63. # to authenticate a domain group, specify the full DN<br />
  64. AuthLDAPGroupAttributeIsDN on<br />
  65. require ldap-group CN=WebAuthAccess,CN=Users,DC=i12bretro,DC=local<br />
  66. &lt;/location&gt;</p>
  67. </li>
  68. <li>Save httpd.conf</li>
  69. <li>Restart the Apache service</li>
  70. <li>Refresh https://DNSorIP/filemanager</li>
  71. </ol>
  72. </div>
  73. </div>
  74. </body>
  75. </html>