Forum

CGI execution not allowed

leutnant24
2 July 2012, 15:32
Hi,

im trying to get Hiawatha v8.4/PHP VC6 x86 Non Thread Safe (2011-Mar-22 13:28:39)/dokuwiki-2012-01-25a to work on Windows.
I am using this config:

# Hiawatha main configuration file
#

# GENERAL SETTINGS
#
#ServerId = www-data
ConnectionsTotal = 150
ConnectionsPerIP = 10
SystemLogfile = C:\Program Files\Hiawatha\log\system.log
GarbageLogfile = C:\Program Files\Hiawatha\log\garbage.log


# BINDING SETTINGS
# A binding is where a client can connect to.
#
Binding {
Port = 80
# Interface = 127.0.0.1
# MaxKeepAlive = 30
# TimeForRequest = 3,20
}
#
#Binding {
# Port = 443
# Interface = ::1
# MaxKeepAlive = 30
# TimeForRequest = 3,20
# SSLcertFile = C:\Program Files\Hiawatha\config\hiawatha.pem
#}


# BANNING SETTINGS
# Deny service to clients who misbehave.
#
#BanOnGarbage = 300
#BanOnMaxPerIP = 60
#BanOnMaxReqSize = 300
#KickOnBan = yes
#RebanDuringBan = yes


# COMMON GATEWAY INTERFACE (CGI) SETTINGS
# These settings can be used to run CGI applications. Use the 'php-fcgi'
# tool to start PHP as a FastCGI daemon.
#
CGIhandler = C:\Program Files\PHP5\php-cgi.exe:php
CGIhandler = C:\Program Files\Hiawatha\bin\ssi-cgi.exe:shtml
CGIextension = cgi
#
#FastCGIserver {
# FastCGIid = PHP5
# ConnectTo = 127.0.0.1:2005
# Extension = php
#}


# URL TOOLKIT
# This URL toolkit rule was made for the Banshee PHP framework, which
# can be downloaded from http://www.hiawatha-webserver.org/banshee
#
#UrlToolkit {
# ToolkitID = banshee
# RequestURI isfile Return
# Match ^/(css|files|images|js)/ Return
# Match ^/(favicon.ico|robots.txt|sitemap.xml)$ Return
# Match .*\?(.*) Rewrite /index.php?$1
# Match .* Rewrite /index.php
#}


# DEFAULT WEBSITE
# It is wise to use your IP address as the hostname of the default website
# and give it a blank webpage. By doing so, automated webscanners won't find
# your possible vulnerable website.
#
Hostname = 127.0.0.1
WebsiteRoot = C:\wwwroot
StartFile = index.html
AccessLogfile = C:\Program Files\Hiawatha\log\access.log
ErrorLogfile = C:\Program Files\Hiawatha\log\error.log


I installed PHP with the msi Installer with default values for "other websevers "and php.ini ist unchanged.

The dokuwiki is copied to c:\wwwroot

When i try http://localhost/install.php in my browser i get "403 forbidden"
The error.log says: /cygdrive/c/wwwroot/install.php|CGI execution not allowed
I thout of accesright under W7, but the same behavior in XP Mode.

Does anyone can give me a hint ?

Thanx

Hiawatha version: v8.4
Operating System: W7x64/XP Mode
Hugo Leisink
2 July 2012, 16:03
The hint is: read the HOWTO pages.
leutnant24
2 July 2012, 16:12
Hi Hugo,

thanks for the replay, i did so but i will do it again.
leutnant24
2 July 2012, 16:35
Hi,

ok, i misunderstood the sentence "You can allow CGI execution per website via the ExecuteCGI option."
Now i read it as "You have to allow CGI execution per website via the ExecuteCGI option." and after putting the
ExecuteCGI = yes
rule in the config for the default website PHP works.
Thanks

This topic has been closed.