Forum

h5ai configuration - relative path as Index file

soukup
5 January 2015, 16:20
Hi,

has anyone managed to run h5ai (http://larsjung.de/h5ai/) on Hiawatha?
I tried to set the required index file by using:

StartFile = /_h5ai/server/php/index.php

This caused Hiawatha not to start. Does anyone know a proper configuration for this?

Thanks.

Hiawatha version: 9.9
Operating System: Ubuntu Server 14.04
Hugo Leisink
5 January 2015, 19:06
The StartFile should be just a filename. The WebsiteRoot setting should point to the directory where the index.php file is located.
WebsiteRoot = /_h5ai/server/php
StartFile = index.php
soukup
5 January 2015, 21:53
Hugo, thank you for the quick reply.

I tried this and I ended up with a broken h5ai, but it has shown the directories. I think that the index file is supposed to be a relative path (leading to "webrootdir/_h5ai/server/php"), while indexing the WebsiteRoot directory.

With your proposed config I got a very raw looking classic index showing the folders and "⚡ JavaScript disabled! ⚡⚡ Works best in modern browsers! ⚡powered by h5ai 0.26.1".
Downloading the files did not work.

Thank you very much!
This topic has been closed.