Trouble getting FastCGI to work with perl and Apache 2

Shane De Jager <sdejager-mfvoBoRt3PW8qtKVGud/[email protected]>
Newsgroups gmane.comp.web.fastcgi.devel
Organization Intergage Limited
Message-ID <QjZGODFCViQzMC8yU1YjMjU4ODc1MDQ@fierce-tiger>
Hi,

I am trying to get fastCGI to work with apache 2.

I have downloaded the latest pre-compiled mod_fastcgi.dll from fastcgi.com and 
copied it into my modules directory and intalled the FCGI modue from CPAN.

I have configured apache as follows :

LoadModule fastcgi_module modules/mod_fastcgi.dll

<IfModule mod_fastcgi.c>
    # URIs that begin with /fcgi-bin/, are found in P:/intergage/fcgi-bin/
    Alias /fcgi-bin/ P:/intergage/fcgi-bin/
    # Anything with one of these extensions is handled as a "dynamic" server if 
not defined as
    # "static" or "external". Note: "dynamic" servers require ExecCGI to be on 
in their directory.
    AddHandler fastcgi-script .fcgi .fpl
  
</IfModule>

and am using the following  fastCGI example to see it it works

#!/usr/bin/perl
use strict;
use CGI;
use CGI::Fast;
while (my $q = new CGI::Fast()) {
    print $q->header(),
            $q->start_html('Test CGI script'),
            $q->p('Hello! The time is', scalar(localtime(time())), 'and your IP 
address is', $q->remote_addr(), $q->end_html());
}

when try and run this the browser tries for a bit and then gives an internal 
server error.

I get the following in the error log

[Fri Jun 03 16:06:22 2005] [notice] Apache/2.0.53 (Win32) mod_fastcgi/2.4.3 
configured -- resuming normal operations
[Fri Jun 03 16:06:22 2005] [notice] Server built: Feb 10 2005 06:11:34
[Fri Jun 03 16:06:22 2005] [notice] Parent: Created child process 4216
[Fri Jun 03 16:06:23 2005] [notice] Child 4216: Child process is running
[Fri Jun 03 16:06:23 2005] [notice] FastCGI: process manager initialized
[Fri Jun 03 16:06:23 2005] [notice] Child 4216: Acquired the start mutex.
[Fri Jun 03 16:06:23 2005] [notice] Child 4216: Starting 250 worker threads.
[Fri Jun 03 16:06:37 2005] [warn] FastCGI: (dynamic) server 
"P:/Intergage/public_html/fcgi.fcgi" started (pid 3816)
[Fri Jun 03 16:06:39 2005] [warn] FastCGI: (dynamic) server 
"P:/Intergage/public_html/fcgi.fcgi" (pid 3816) terminated with exit with 
status '9'
[Fri Jun 03 16:06:39 2005] [error] [client 192.168.1.10] (OS 109)The pipe has 
been ended.  : FastCGI: comm with server "P:/Intergage/public_html/fcgi.fcgi" 
aborted: GetOverlappedResult() failed
[Fri Jun 03 16:06:39 2005] [error] [client 192.168.1.10] FastCGI: incomplete 
headers (0 bytes) received from server "P:/Intergage/public_html/fcgi.fcgi"
[Fri Jun 03 16:06:42 2005] [warn] FastCGI: (dynamic) server 
"P:/Intergage/public_html/fcgi.fcgi" restarted (pid 1088)
[Fri Jun 03 16:06:44 2005] [warn] FastCGI: (dynamic) server 
"P:/Intergage/public_html/fcgi.fcgi" (pid 1088) terminated with exit with 
status '9'
[Fri Jun 03 16:06:47 2005] [warn] FastCGI: (dynamic) server 
"P:/Intergage/public_html/fcgi.fcgi" restarted (pid 1900)
[Fri Jun 03 16:06:48 2005] [warn] FastCGI: (dynamic) server 
"P:/Intergage/public_html/fcgi.fcgi" (pid 1900) terminated with exit with 
status '9'
[Fri Jun 03 16:06:52 2005] [warn] FastCGI: (dynamic) server 
"P:/Intergage/public_html/fcgi.fcgi" restarted (pid 5368)
[Fri Jun 03 16:06:53 2005] [warn] FastCGI: (dynamic) server 
"P:/Intergage/public_html/fcgi.fcgi" (pid 5368) terminated with exit with 
status '9'
[Fri Jun 03 16:06:53 2005] [warn] FastCGI: (dynamic) server 
"P:/Intergage/public_html/fcgi.fcgi" has failed to remain running for 30 
seconds given 3 attempts, its restart interval has been backed off to 600 
seconds


Is there something im missing?
Have I configured Apache properly?
Is there something wrong with the perl script?

Thanks for the help


-- 
Shane De Jager
Technical Developer

INTERGAGE
High performance, updateable web sites

Switchboard   +44(0)845 456 1022
Direct Dial      +44(0)1202 688 219
==
www.intergage.co.uk
sdejager-mfvoBoRt3PW8qtKVGud/[email protected]

PS - Are you aware of our referral scheme..? Learn how you could personally 
profit from passing us leads..! 

Click here to pass a referral - www.intergage.co.uk/referrals

___________________________________
fastcgi-developers mailing list
http://fastcgi.com/fastcgi-developers/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.