Select Page

How To Install H5ai on Centos 7
January 01, 2019
How To Install H5ai on Centos 7

H5ai is a modern file indexer for HTTP web servers with focus on your files. Directories are displayed in a appealing way and browsing them is enhanced by different views, a breadcrumb and a tree overview. Initially h5ai was an acronym for HTML5 Apache Index but now it supports other web servers too.

Step 1 - Installing

Requires PHP 5.5+


Copy folder _h5ai to the document root directory of the web server: DOC_ROOT/_h5ai.

 ├─ _h5ai
 ├─ your files
 └─ and folders

Add /_h5ai/public/inde to http conf file

Apache httpd 2.2/2.4: in httpd.conf or in the root directory's .htaccess file set for example:
DirectoryIndex  index.html  index.php  /_h5ai/public/index.php
Nginx 1.2: in nginx.conf set for example:
index index.html index.php /_h5ai/public/index.php;

Step 2 - Visit http://YOUR-DOMAIN.TLD/_h5ai/public/index.php, to check if h5ai is reachable. This page shows some hints on the server's capabilities.

Public Cache Directory and Private Cache Directory

chmod -R 755 /_h5ai/private
chmod -R 755 /_h5ai/public

Use EXIF thumbs

Install exif for PHP

Movie thumbs

#EPEL Release
yum install -y epel-release
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
yum repolist

rpm --import
rpm -Uvh
yum repolist

yum install -y ffmpeg
ffmpeg -version

PDF thumbs

yum -y install imagemagick

Shell tar,Shell zip and Shell du

Remove exec, passthru and scandir from php.ini disabled function

Change website title

vi _h5ai/private/php/pages/index.php
<title>Index of JackieSung</title>
vi _h5ai/private/conf/options.json
Replace window title with current breadcrumb.
"title": {
"enabled": true
vi _h5ai/public/js/scripts.js
Replace "/"===e?f.getDomain()
"/"===e?'Something I want'

By Jackie Sung

Jackie Sung, also known by his nick-name KK, always strives for the best and learn from the best. Working and living as a Freelance Web Engineer/ Web Developer & Designer/ Amateur Youtuber/ Husky Lover.

Related Articles

How To Install and Configure Proxmox VE on Hetzner Server

How To Install and Configure Proxmox VE on Hetzner Server

Proxmox VE is a complete open-source platform for enterprise virtualization. With the built-in web interface you can easily manage VMs and containers, software-defined storage and networking, high-availability clustering, and multiple out-of-the-box tools on a single solution.

read more


Submit a Comment

Your email address will not be published. Required fields are marked *

Pin It on Pinterest

Share This