h5ai is a modern file indexer for HTTP web servers. It provides an attractive directory listing with features such as multiple viewing modes, image previews, whole-folder downloads and many other enhancements.


Installation

Before you begin, log in to your service via SSH.

Navigate to your web root directory:

cd ~/www/$(whoami).$(hostname)/$(whoami)

Download and extract h5ai:

wget --no-check-certificate https://release.larsjung.de/h5ai/h5ai-0.29.0.zip && unzip h5ai-0.29.0.zip

Configure Apache to use h5ai for directories that do not contain an index file:

echo "DirectoryIndex index.html index.php /$(whoami)/_h5ai/public/index.php" > .htaccess

That's all. h5ai has now been installed. Open your account via HTTP and h5ai will automatically manage the display of directories that do not contain an index file.

The default installation uses the standard configuration. If you would like to customize its behaviour, edit the following file:

_h5ai/private/conf/options.json

You can also use our preconfigured options.json file, which enables most commonly used features:

wget --no-check-certificate \
-O ~/www/$(whoami).$(hostname)/$(whoami)/\
_h5ai/private/conf/options.json \
https://www.dropbox.com/s/vej504nbbbqzg59/options.json

Uninstallation

To completely remove h5ai, run the following commands:

rm -r ~/www/$(whoami).$(hostname)/$(whoami)/_h5ai
rm -f ~/www/$(whoami).$(hostname)/$(whoami)/.htaccess
ℹ️ Note

Removing the .htaccess file restores the default directory listing behaviour for your web root.

Was this answer helpful? 142 Users Found This Useful (219 Votes)