H5ai: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
| (One intermediate revision by the same user not shown) | |||
| Line 46: | Line 46: | ||
# or | # or | ||
DirectoryIndex index.html index.php /.h5ai/public/index.php | DirectoryIndex index.html index.php /.h5ai/public/index.php | ||
If you rename to .h5ai: | |||
php/core/class-context.php: if (@is_dir($path . '/_h5ai/private/conf')) { | |||
php/core/class-setup.php: $this->set('FILE_PREFIX', '_h5ai'); | |||
Fix cache dirs: | Fix cache dirs: | ||
| Line 63: | Line 67: | ||
Note: http://md5hashing.net/hashing/sha512 * sha512 | Note: http://md5hashing.net/hashing/sha512 * sha512 | ||
Hide Parent: | Hide Parent Folder: | ||
<pre> | |||
"view": { | "view": { | ||
"hideParentFolder": true, | "hideParentFolder": true, | ||
</pre> | |||
Hide .h5ai (if renamed): | |||
<pre> | |||
"view": { | |||
"hidden": ["^\\.", "^_h5ai", "^.h5ai"], | |||
</pre> | |||
Latest revision as of 00:34, 17 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
If you rename to .h5ai:
php/core/class-context.php: if (@is_dir($path . '/_h5ai/private/conf')) {
php/core/class-setup.php: $this->set('FILE_PREFIX', '_h5ai');
Fix cache dirs:
sudo chown -R :www-data _h5ai/private/cache sudo chown -R :www-data _h5ai/public/cache sudo chmod -R g+w _h5ai/private/cache sudo chmod -R g+w _h5ai/public/cache # or sudo chown -R :www-data .h5ai/private/cache sudo chown -R :www-data .h5ai/public/cache sudo chmod -R g+w .h5ai/private/cache sudo chmod -R g+w .h5ai/public/cache
Change password in:
_h5ai/private/conf/options.json
Note: http://md5hashing.net/hashing/sha512 * sha512
Hide Parent Folder:
"view": {
"hideParentFolder": true,
Hide .h5ai (if renamed):
"view": {
"hidden": ["^\\.", "^_h5ai", "^.h5ai"],