I'm trying to get Hiawatha working with PHP5 FPM running chroot:ed.
I got the configuration working without using chroot in /etc/php-fpm.d/www.conf but if i enable it by setting:
chroot = /var/www/hiawatha/
chdir = /
The output is: No input file specified.
The problem is that Hiawatha sends the normal path ( "/var/www/hiawatha/index.php" ) to PHP-FPM that, when chroot:ed, think that "/var/www/hiawatha/" is "/" (the root). So PHP basically looks here for index.php : "/var/www/hiawatha/var/www/hiawatha/index.php".
If I create the above, wrong, path then PHP-FPM with chroot find the file.
I have been reading a lot of posts and as far as I understand (CGI) Wrap does not work with FastCGI (PHP-FPM) so that can not be used to fix the problem.
Is there a good solution to this problem?
Hiawatha version: 9.11
Operating System: Centos 7