
I'm attempting to get FastCGI working with Haskell under Windows XP. However, all the sample code I've tried always fails with: user error (FCGX_Accept_r failed with error code: -9999) unknown listenType (0) Has anyone seen this before? Any ideas on what I could try to get this to work? Kevin

Just to add more detail:
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.
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:
http://www.apachelounge.com/download/
and tried that instead.
I no longer get the error message I mentioned before, but instead get:
[Thu Nov 26 08:44:30 2009] [warn] mod_fcgid: read timeout from pipe
[Thu Nov 26 08:44:30 2009] [error] [client 127.0.0.1] Premature end of script headers: test2.fcgi
Any suggestions?
Kevin
--- On Wed, 11/25/09, Kevin Jardine
From: Kevin Jardine
Subject: [Haskell-cafe] FastCGI under Windows To: haskell-cafe@haskell.org Date: Wednesday, November 25, 2009, 10:44 PM I'm attempting to get FastCGI working with Haskell under Windows XP. However, all the sample code I've tried always fails with:
user error (FCGX_Accept_r failed with error code: -9999) unknown listenType (0)
Has anyone seen this before? Any ideas on what I could try to get this to work?
Kevin
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

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.
Michael
On Thu, Nov 26, 2009 at 9:55 AM, Kevin Jardine
Just to add more detail:
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.
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:
http://www.apachelounge.com/download/
and tried that instead.
I no longer get the error message I mentioned before, but instead get:
[Thu Nov 26 08:44:30 2009] [warn] mod_fcgid: read timeout from pipe [Thu Nov 26 08:44:30 2009] [error] [client 127.0.0.1] Premature end of script headers: test2.fcgi
Any suggestions?
Kevin
--- On Wed, 11/25/09, Kevin Jardine
wrote: From: Kevin Jardine
Subject: [Haskell-cafe] FastCGI under Windows To: haskell-cafe@haskell.org Date: Wednesday, November 25, 2009, 10:44 PM I'm attempting to get FastCGI working with Haskell under Windows XP. However, all the sample code I've tried always fails with:
user error (FCGX_Accept_r failed with error code: -9999) unknown listenType (0)
Has anyone seen this before? Any ideas on what I could try to get this to work?
Kevin
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Just to provide completion to this thread, I gave up on Haskell Windows web development after discovering that some important libraries like network-minihttp did not compile under Windows (and I could never get FastCGI to work properly either, although it did compile).
I'm now developing using Fedora running in VirtualBox. It took several hours to get the Haskell Platform installed properly under the Fedora version I'll be deploying to (Fedora 9), but now everything seems fine, including FastCGI.
Since my end goal is to deploy to Fedora 9 in any case, this seems a good solution.
Kevin
--- On Thu, 11/26/09, Michael Snoyman
From: Michael Snoyman
Subject: Re: [Haskell-cafe] FastCGI under Windows To: "Kevin Jardine" Cc: haskell-cafe@haskell.org Date: Thursday, November 26, 2009, 12:36 PM 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. Michael
On Thu, Nov 26, 2009 at 9:55 AM, Kevin Jardine
wrote: Just to add more detail:
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.
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:
http://www.apachelounge.com/download/
and tried that instead.
I no longer get the error message I mentioned before, but instead get:
[Thu Nov 26 08:44:30 2009] [warn] mod_fcgid: read timeout from pipe
[Thu Nov 26 08:44:30 2009] [error] [client 127.0.0.1] Premature end of script headers: test2.fcgi
Any suggestions?
Kevin
--- On Wed, 11/25/09, Kevin Jardine
wrote: From: Kevin Jardine
Subject: [Haskell-cafe] FastCGI under Windows
To: haskell-cafe@haskell.org
Date: Wednesday, November 25, 2009, 10:44 PM
I'm attempting to get FastCGI working
with Haskell under Windows XP.
However, all the sample code I've tried always fails with:
user error (FCGX_Accept_r failed with error code: -9999)
unknown listenType (0)
Has anyone seen this before? Any ideas on what I could try
to get this to work?
Kevin
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
participants (2)
-
Kevin Jardine
-
Michael Snoyman