How to Install DirectoryLister on Windows 10

DirectoryLister is a free and open-source PHP based script that helps to generate a directory listing of the files and folders on your website. In this tutorial, we will guide you on how to install and set up DirectoryLister on a Windows 10 system.

Prerequisites

  • PHP 5.3 or higher version installed on your system
  • Apache server installed and running
  • A text editor like Notepad++, Sublime Text or VS Code

Step 1 - Download and extract the DirectoryLister

  1. Visit the DirectoryLister website at https://www.directorylister.com/ and click on the 'Download' button.
  2. Extract the downloaded file to the root directory of your Apache web server. For example, if your Apache server is installed in "C:\Apache24", extract the downloaded DirectoryLister folder to "C:\Apache24\htdocs".
  3. Rename the folder to "directorylister" for easy access.

Step 2 - Edit the configuration file

  1. Open the "directorylister" folder that you extracted earlier.
  2. Make a copy of the "config.php.example" file and rename it to "config.php"
  3. Open the "config.php" file using a text editor.
  4. Modify the following settings as per your requirements:
    • $allowedExtensions - This setting allows you to choose which file types to display.
    • $hiddenFiles - Enable or disable the display of hidden files and folders.
    • $theme - You can choose from various themes like 'default', 'bootstrap' etc.
    • $downloadRole - Set a role to restrict the download option to authenticated users only.

Step 3 - Accessing DirectoryLister from the web browser

  1. Start the Apache server by selecting "Start Apache" from the "Apache24\bin" folder.
  2. Open your web browser and type "http://localhost/directorylister/" in the URL bar.
  3. If you have set up everything correctly, you will now see a directory listing of the files and folders in your web root directory.

Congratulations! You have successfully installed and set up DirectoryLister on your Windows 10 system.