Forum

FastCGI config

Phil Daintree
6 June 2009, 12:24
Hi Hugo,

I just compiled your latest 6.14 and using the httpd.conf I had from 6.11 I now get an error:

# hiawatha -c /etc/hiawatha
Syntax error in httpd.conf on line 121.

line 121 is the FastCGI = PHP5 line in the snippet below:
VirtualHost {
Hostname = localhost
WebsiteRoot = /root/httpd/hiawatha
StartFile = index.php
AccessLogfile = /var/log/hiawatha/access.log
ErrorLogfile = /var/log/hiawatha/error.log
FastCGI = PHP5
}


the FastCGIid = PHP5 is defined higher up the conf file as:

FastCGIserver {
FastCGIid = PHP5
ConnectTo = 127.0.0.1:2005
Extension = php
SessionTimeout = 60
}


netstat -l shows the daemons to be listening on localhost:2005
of course localhost is on 127.0.0.1 as normal and php-cgi daemon processes are running

Why won't hiawatha start with this config.... the entire config for your info is:

ServerId = nobody
ConnectionsTotal = 150
ConnectionsPerIP = 10
SystemLogfile = /var/log/hiawatha/system.log
GarbageLogfile = /var/log/hiawatha/garbage.log

Binding {
Port = 80
MaxRequestSize = 512
}
MimetypeConfig = /etc/mime.types
CGIhandler = /usr/bin/perl:pl
TimeForCGI = 60

FastCGIserver {
FastCGIid = PHP5
ConnectTo = 127.0.0.1:2005
Extension = php
SessionTimeout = 60
}

Hostname = 127.0.0.1
WebsiteRoot = /root/httpd/hiawatha
StartFile = index.php
AccessLogfile = /var/log/hiawatha/access.log
ErrorLogfile = /var/log/hiawatha/error.log

VirtualHost {
Hostname = localhost
WebsiteRoot = /root/httpd/hiawatha
StartFile = index.php
AccessLogfile = /var/log/hiawatha/access.log
ErrorLogfile = /var/log/hiawatha/error.log
FastCGI = PHP5
}


When I run wigwam to check the config all is well...

# wigwam -c /etc/hiawatha
Using /etc/hiawatha
Reading httpd.conf
No non-fatal errors found in the Hiawatha configuration.

Appreciate any ideas?

Phil

Hiawatha version: 6.14
Operating System: puppylinux
Hugo Leisink
6 June 2009, 23:50
FastCGI must be UseFastCGI from this version on. Thanks about informing me about wigwam. Forgot to update that one.

As mentioned on the download page: always read the changelog before upgrading. It was mentioned there.
Phil Daintree
7 June 2009, 02:34

Thanks Hugo - will read up on how to use UseFastCGI

I did check the changelog I just re-read it too and still don't see any reference to UseFastCGI - you may wish to update the changelog and and also the HOWTO too.

hiawatha (6.14) stable; urgency=medium

* Platform independent read-timeout handlers.
* RequiredCA option added.
* UseSSL option removed, ServerKey option renamed to UseSSL and made available only in Binding section.
* Small bugfixes and improvements.
* Bugfix: fork-mutex issue when executing CGI.

-- Hugo Leisink <hugo@leisink.net> Wed, 3 Jun 2009 18:06:52 +0200
hiawatha (6.13) stable; urgency=low

* LSB style header added to init script.
* SSL initialization improved for cross compiling.
* Change in signal handling (HUP and USR2 signal).
* Small bugfixes and improvements.
* Bugfix: incorrect MD5 hashing on 64bit machines.

-- Hugo Leisink <hugo@leisink.net> Wed, 6 May 2009 21:33:49 +0200
hiawatha (6.12) stable; urgency=low

* Compile errors under the latest Ubuntu release fixed.
* Small bugfixes and improvements.
Phil Daintree
7 June 2009, 02:50
For anyone with a similar issue the UseFastCGI directive replaces FastCGI directive in the Virtual Host section(s) of the config.
This topic has been closed.