<div dir="ltr">You could try calling the program as CGI instead of FastCGI to try and pin down where the error is coming from. Also, you could run a FastCGI script in a different language (Perl?) and see if that works. I can't say, however, that I've even used FastCGI on Windows.<br>
<br>Michael<br><br><div class="gmail_quote">On Thu, Nov 26, 2009 at 9:55 AM, Kevin Jardine <span dir="ltr"><<a href="mailto:kevinjardine@yahoo.com">kevinjardine@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Just to add more detail:<br>
<br>
I am running Apache 2.2.9. The message I mentioned appeared in the Apache error log file when running the sample Haskell FastCGI scripts under localhost with mod_fastcgi.<br>
<br>
I understand that there are some problems with mod_fastcgi and Apache 2.2.9, so I downloaded the Apache 2.2.9 version of mod_fcgid from here:<br>
<br>
<a href="http://www.apachelounge.com/download/" target="_blank">http://www.apachelounge.com/download/</a><br>
<br>
and tried that instead.<br>
<br>
I no longer get the error message I mentioned before, but instead get:<br>
<br>
[Thu Nov 26 08:44:30 2009] [warn] mod_fcgid: read timeout from pipe<br>
[Thu Nov 26 08:44:30 2009] [error] [client 127.0.0.1] Premature end of script headers: test2.fcgi<br>
<br>
Any suggestions?<br>
<br>
Kevin<br>
<br>
<br>
<br>
--- On Wed, 11/25/09, Kevin Jardine <<a href="mailto:kevinjardine@yahoo.com">kevinjardine@yahoo.com</a>> wrote:<br>
<br>
> From: Kevin Jardine <<a href="mailto:kevinjardine@yahoo.com">kevinjardine@yahoo.com</a>><br>
> Subject: [Haskell-cafe] FastCGI under Windows<br>
> To: <a href="mailto:haskell-cafe@haskell.org">haskell-cafe@haskell.org</a><br>
> Date: Wednesday, November 25, 2009, 10:44 PM<br>
<div><div></div><div class="h5">> I'm attempting to get FastCGI working<br>
> with Haskell under Windows XP.<br>
><br>
> However, all the sample code I've tried always fails with:<br>
><br>
> user error (FCGX_Accept_r failed with error code: -9999)<br>
> unknown listenType (0)<br>
><br>
> Has anyone seen this before? Any ideas on what I could try<br>
> to get this to work?<br>
><br>
> Kevin<br>
><br>
><br>
><br>
> <br>
> _______________________________________________<br>
> Haskell-Cafe mailing list<br>
> <a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
> <a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
><br>
<br>
<br>
<br>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
</div></div></blockquote></div><br></div>