Forum

Windows - Hiawatha - PHP

Marius
3 April 2012, 11:33
Hello

I am running hiawatha on a windows machine (see specs below) and did configure hiawatha as following:

# GENERAL SETTINGS
#
#ServerId = www-data
ConnectionsTotal = 150
ConnectionsPerIP = 10
SystemLogfile = /cygdrive/c/Program Files/Hiawatha/log/system.log
GarbageLogfile = /cygdrive/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
}

# 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'
ExecuteCGI = yes
CGIextension = cgi



# 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 = /cygdrive/c/Program Files/Hiawatha/log/access.log
ErrorLogfile = /cygdrive/c/Program Files/Hiawatha/log/error.log
#ErrorHandler = 404:/error.cgi


When i try to access a test.php file in my browser, hiawatha server always try to download this file.
Why is it not interpreting the file with the given cgi handler? Any hints?

Greetings Marius

Hiawatha version: 8.1
Operating System: Windows 7 32 Bit
Hugo Leisink
3 April 2012, 11:57
Try removing the quotes in the CGIhandler setting.
Marius
3 April 2012, 12:25
Ok that did the job. A little bit embarrassing because i searched a while in the wrong direction....
But now my page is very slow... i have to try to run with fast cgi. Don't close this post yet
Marius
3 April 2012, 12:30
Still it is very slow even with the fast-cgi option enabled..... ?
Hugo Leisink
3 April 2012, 13:29
Did you follow the instructions on the CGI and FastCGI HOWTO page correctly?

Note that Hiawatha was written for Unix. The only reason that the Windows version exists, is because it was so easy to build via Cygwin. But Cygwin is not known for its speed...
Marius
3 April 2012, 13:40
i don't think it is related to the way if i use cgi or fast cgi.... the page is built very slow if i have some images on it. Are there any performance improvements for this?
Marius
3 April 2012, 13:54
Sorry it is my mistake. It is somehow related to the current php scripts. I have to adjust them. I think this topic is solved. Thank you very much!
This topic has been closed.