H5ai: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 2: | Line 2: | ||
https://github.com/lrsjng/h5ai/ | https://github.com/lrsjng/h5ai/ | ||
Dependencies: | |||
sudo update | |||
sudo apt-get install apache2 php php8.5 libapache2-mod-php | |||
sudo a2enmod php8.5 | |||
sudo systemctl restart apache2 | |||
# Extra dependencies: | |||
# php-gd :: Image thumbs no - PHP GD extension with JPEG support available | |||
# php-exif :: Use EXIF thumbs - PHP EXIF extension available | |||
# ffmpeg :: Movie thumbs - Command line program avconv or ffmpeg available ## (avconv deprecated) | |||
# imagemagick or graphicsmagick :: PDF thumbs - Command line program convert or gm available | |||
# zip :: Shell zip - Command line program zip available | |||
sudo apt install php-gd php-exif ffmpeg imagemagick graphicsmagick zip | |||
# recommended when installing graphicsmagick | |||
sudo apt install ghostscript | |||
h5ai · modern HTTP web server index for Apache httpd, lighttpd, nginx and Cherokee · larsjung.de - https://larsjung.de/h5ai/ | h5ai · modern HTTP web server index for Apache httpd, lighttpd, nginx and Cherokee · larsjung.de - https://larsjung.de/h5ai/ | ||
Latest release: | |||
https://github.com/lrsjng/h5ai/releases/latest | |||
Install: | |||
wget https://github.com/lrsjng/h5ai/releases/download/v0.30.0/h5ai-0.30.0.zip | |||
unzip h5ai-0.30.0.zip | |||
# optional: | |||
mv _h5ai .h5ai | |||
<s> | |||
wget https://release.larsjung.de/h5ai/h5ai-0.29.0.zip | wget https://release.larsjung.de/h5ai/h5ai-0.29.0.zip | ||
unzip h5ai-0.29.0.zip | unzip h5ai-0.29.0.zip | ||
</s> | |||
Check to see that you can access it: | Check to see that you can access it: | ||
| Line 12: | Line 42: | ||
Add /_h5ai/public/index.php (note the leading slash!) to the end of the default index-file list: | Add /_h5ai/public/index.php (note the leading slash!) to the end of the default index-file list: | ||
DocumentRoot /var/www/html | |||
DirectoryIndex index.html index.php /_h5ai/public/index.php | DirectoryIndex index.html index.php /_h5ai/public/index.php | ||
# or | |||
DirectoryIndex index.html index.php /.h5ai/public/index.php | |||
Fix cache dirs: | Fix cache dirs: | ||
chown :www-data _h5ai/private/cache | sudo chown :www-data _h5ai/private/cache | ||
chown :www-data _h5ai/public/cache | sudo chown :www-data _h5ai/public/cache | ||
sudo chmod g+w _h5ai/private/cache | |||
sudo chmod g+w _h5ai/public/cache | |||
# or | |||
sudo chown :www-data .h5ai/private/cache | |||
sudo chown :www-data .h5ai/public/cache | |||
sudo chmod g+w .h5ai/private/cache | |||
sudo chmod g+w .h5ai/public/cache | |||
Change password in: | Change password in: | ||
Revision as of 23:14, 16 November 2026
h5ai
https://github.com/lrsjng/h5ai/
Dependencies:
sudo update sudo apt-get install apache2 php php8.5 libapache2-mod-php sudo a2enmod php8.5 sudo systemctl restart apache2
# Extra dependencies: # php-gd :: Image thumbs no - PHP GD extension with JPEG support available # php-exif :: Use EXIF thumbs - PHP EXIF extension available # ffmpeg :: Movie thumbs - Command line program avconv or ffmpeg available ## (avconv deprecated) # imagemagick or graphicsmagick :: PDF thumbs - Command line program convert or gm available # zip :: Shell zip - Command line program zip available sudo apt install php-gd php-exif ffmpeg imagemagick graphicsmagick zip
# recommended when installing graphicsmagick sudo apt install ghostscript
h5ai · modern HTTP web server index for Apache httpd, lighttpd, nginx and Cherokee · larsjung.de - https://larsjung.de/h5ai/
Latest release:
https://github.com/lrsjng/h5ai/releases/latest
Install:
wget https://github.com/lrsjng/h5ai/releases/download/v0.30.0/h5ai-0.30.0.zip unzip h5ai-0.30.0.zip
# optional: mv _h5ai .h5ai
wget https://release.larsjung.de/h5ai/h5ai-0.29.0.zip unzip h5ai-0.29.0.zip
Check to see that you can access it:
http://URL/_h5ai/public/index.php
Add /_h5ai/public/index.php (note the leading slash!) to the end of the default index-file list:
DocumentRoot /var/www/html DirectoryIndex index.html index.php /_h5ai/public/index.php # or DirectoryIndex index.html index.php /.h5ai/public/index.php
Fix cache dirs:
sudo chown :www-data _h5ai/private/cache sudo chown :www-data _h5ai/public/cache sudo chmod g+w _h5ai/private/cache sudo chmod g+w _h5ai/public/cache # or sudo chown :www-data .h5ai/private/cache sudo chown :www-data .h5ai/public/cache sudo chmod g+w .h5ai/private/cache sudo chmod g+w .h5ai/public/cache
Change password in:
_h5ai/private/conf/options.json
Note: http://md5hashing.net/hashing/sha512 * sha512
Hide Parent:
"view": {
"hideParentFolder": true,