0046.html 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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. <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>Web Based File Management with PHP and Tiny File Manager</h1>
  21. </div>
  22. <div></div>
  23. <div id="content">
  24. <h2>Download and Setup Tiny File Manager</h2>
  25. <ol>
  26. <li>Download Tiny File Manager <a href="https://github.com/prasathmani/tinyfilemanager/releases" target="_blank">Download</a></li>
  27. <li>Extract the Tiny File Manager files</li>
  28. <li>Copy TinyFileManager.php to Apache install directory/htdocs/filemanager</li>
  29. <li>Rename TinyFileManager.php to index.php</li>
  30. <li>Edit index.php in a text editor</li>
  31. <li>Find $use_auth and set the value to false</li>
  32. <li>Save</li>
  33. <li>Open a web browser and navigate to https://DNSorIP/filemanager</li>
  34. </ol>
  35. <h2>Customizing Root Location and Authentication</h2>
  36. <ol>
  37. <li>Optionally, Edit Apache install directory/htdocs/filemanager/index.php</li>
  38. <li>Find $root_path and edit the value to limit the scope of the file manager</li>
  39. <li>Save index.php</li>
  40. <li>Navigate to the Apache install directory/conf in Explorer</li>
  41. <li>Edit httpd.conf in a text editor</li>
  42. <li>Find the authnz_ldap_module and make sure it is enabled by removing the # at the start of the line
  43. <p>LoadModule authnz_ldap_module modules/mod_authnz_ldap.so</p>
  44. </li>
  45. <li>Find the ldap_module and make sure it is enabled by removing the # at the start of the line
  46. <p>LoadModule ldap_module modules/mod_ldap.so</p>
  47. </li>
  48. <li>Create a Location block to enable LDAP authentication for the specified directory
  49. <p>&lt;location /filemanager&gt;<br />
  50. # Basic authentication with LDAP against MS AD<br />
  51. AuthType Basic<br />
  52. AuthBasicProvider ldap<br />
  53. <br />
  54. # AuthLDAPURL specifies the LDAP server IP, port, base DN, scope and filter<br />
  55. # using this format: ldap://host:port/basedn?attribute?scope?filter<br />
  56. AuthLDAPURL &quot;ldap://i12bretro.local:389/DC=i12bretro,DC=local?sAMAccountName?sub?(objectClass=user)&quot; NONE</p>
  57. <p> # The LDAP bind username and password<br />
  58. AuthLDAPBindDN &quot;readonly_svc@i12bretro.local&quot;<br />
  59. AuthLDAPBindPassword &quot;Read0nly!!&quot;<br />
  60. LDAPReferrals Off<br />
  61. AuthUserFile /dev/null<br />
  62. <br />
  63. AuthName &quot;Restricted Area [i12bretro.local]&quot;<br />
  64. # to authenticate a domain group, specify the full DN<br />
  65. AuthLDAPGroupAttributeIsDN on<br />
  66. require ldap-group CN=WebAuthAccess,CN=Users,DC=i12bretro,DC=local<br />
  67. &lt;/location&gt;</p>
  68. </li>
  69. <li>Save httpd.conf</li>
  70. <li>Restart the Apache service</li>
  71. <li>Refresh https://DNSorIP/filemanager</li>
  72. </ol>
  73. </div>
  74. </div>
  75. </body>
  76. </html>