Hiawatha version: 6.16
Operating System: Ubuntu 9.04 Server
Content of hiawatha.conf
...
CGIwrapper = /usr/sbin/cgi-wrapper
...
VirtualHost {
Hostname = www.mysite.com
WebsiteRoot = /var/www/xoops
StartFile = index.php
AccessLogfile = /var/log/hiawatha/access.log
ErrorLogfile = /var/log/hiawatha/error.log
TimeForCGI = 5
# UseFastCGI = PHP5
# PreventCMDi = yes
PreventCSRF = yes
PreventSQLi = yes
PreventXSS = yes
WrapCGI = jail
}
Content of cgi-wrapper.conf
CGIhandler = /usr/bin/perl
CGIhandler = /usr/bin/php5-cgi
CGIhandler = /usr/bin/python
CGIhandler = /usr/bin/ruby
CGIhandler = /usr/bin/ssi-cgi
Wrap = jail ; /var/www ; nobody
I then execute the following commands :
newroot /usr/sbin/php-fcgi
newroot /bin/bash
However, I got "403 Forbidden" error page.