Hello. I recently upgraded from Hiawatha 8.6 to 9.8. I am using CGI-wrapper to run user php scripts. I have the following configuration:
hiawatha.conf:
WrapUserCGI = yes
CGIhandler = /usr/bin/php-cgi:php
FastCGIServer {
FastCGIid = user_fcgi
ConnectTo = 127.0.0.1:2006
Extension = php, php5
SessionTimeout = 60
}
CGIwrapper = /usr/local/sbin/cgi-wrapper
VirtualHost {
Hostname = FQDN
WebsiteRoot = /path/to/website/www
TimeForCGI = 600
ExecuteCGI = no
}
Directory {
Path = /path/to/website/www/site1
StartFile = index.php
ExecuteCGI = yes
WrapCGI = user
ShowIndex = no
}
Directory {
Path = /path/to/website/www/site2
StartFile = index.php
ExecuteCGI = yes
WrapCGI = user
ShowIndex = no
}
cgi-wrapper.conf:
CGIhandler = /usr/bin/php-cgi
Wrap = user ; /path/to/website/www/site1 ; user
Wrap = user ; /path/to/website/www/site2 ; user
php-fcgi.conf:
Server = /usr/bin/php-cgi ; 127.0.0.1:2006 ; user ; /etc/php.ini
Yes I am still using the old php-fcgi program as I have not had a chance to move to php-fpm. In any case the above had been working fine until the upgrade. Now I get the following error messages in the logs:
<Server IP Address>|Mon 20 Oct 2014 09:45:47 -0400|/path/to/website/www/site2/index.php|CGI-wrapper: CGI not in WebsiteRoot
<Server IP Address>|Mon 20 Oct 2014 09:45:47 -0400|/path/to/website/www/site2/index.php|CGI-wrapper: no valid Wrap found
<Server IP Address>|Mon 20 Oct 2014 09:45:47 -0400|/path/to/website/www/site2/index.php|CGI returned 500 Internal Error
These error messages do not make sense as CGI is located in the subfolder of website root. Also, a valid wrap has been defined in cgi-wrapper.conf. What's going on? Thanks.
Hiawatha version: 9.8
Operating System: CentOS 5