grapher.cgi - Apache fails with Premature end of script headers

Bret Hester <[email protected]> Sat, 18 Apr 2009 09:53:00 +0100
Newsgroups gmane.network.cricket.user
Message-ID <[email protected]>
Hello All,

I have followed the "Installing Cricket for the Complete Beginner" guide.

But I can't get past the below in the apache error log;

[Sat Apr 18 09:32:52 2009] [error] [client 192.168.2.130] Premature end of
script headers: /opt/csw/apache/htdocs/cricket/grapher.cgi

Causing;

Internal Server Error
The server encountered an internal error or misconfiguration and was unable
to complete your request.

If I run the grapher.cgi script as the web server user I can redirect to a
html file that displays correctly.
It seems though that the stderror output is what is confusing Apache - I've
tried both apache2 and apache 1.3 and both can not handle this output.

[cricket@fugly] $ ./grapher.cgi > /dev/null
[18-Apr-2009 09:40:57*] Found unknown tag 'interface-desc' during expansion
of '%interface-desc%'.
[18-Apr-2009 09:40:57*] Found unknown tag 'swname' during expansion of
'%swname%:  %inter...'.
[18-Apr-2009 09:40:57*] Found unknown tag 'interface-desc' during expansion
of '!swname!:  %inter...'.
[18-Apr-2009 09:40:57*] Found unknown tag 'swname' during expansion of
'public@%swname%:%...'.
[18-Apr-2009 09:40:57*] Found unknown tag 'swname' during expansion of
'%swname%'.
[18-Apr-2009 09:40:57*] Found unknown tag 'InterfaceID' during expansion of
'%InterfaceID%'.
[18-Apr-2009 09:40:57*] Found unknown tag 'router' during expansion of
'public@%router%:%...'.
[18-Apr-2009 09:40:57*] Found unknown tag 'router' during expansion of
'%router%'.
[18-Apr-2009 09:40:57*] Found unknown tag 'inst' during expansion of
'/home/cricket/cri...'.
[18-Apr-2009 09:40:57*] Found unknown tag 'domain' during expansion of
'public@routing.%d...'.
[18-Apr-2009 09:40:57*] Found unknown tag 'domain' during expansion of
'routing.%domain%'.
[18-Apr-2009 09:40:57*] Found unknown tag 'inst' during expansion of
'/home/cricket/cri...'.

Can anyone please help.

Thanks,

Bret
------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p