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
- Visit the DirectoryLister website at https://www.directorylister.com/ and click on the 'Download' button.
- 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".
- Rename the folder to "directorylister" for easy access.
Step 2 - Edit the configuration file
- Open the "directorylister" folder that you extracted earlier.
- Make a copy of the "config.php.example" file and rename it to "config.php"
- Open the "config.php" file using a text editor.
- 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
- Start the Apache server by selecting "Start Apache" from the "Apache24\bin" folder.
- Open your web browser and type "http://localhost/directorylister/" in the URL bar.
- 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.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!