[Haskell-cafe] FastCGI under Windows

Kevin Jardine kevinjardine at yahoo.com
Sat Nov 28 09:15:05 EST 2009


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 <michael at snoyman.com> wrote:

> From: Michael Snoyman <michael at snoyman.com>
> Subject: Re: [Haskell-cafe] FastCGI under Windows
> To: "Kevin Jardine" <kevinjardine at yahoo.com>
> Cc: haskell-cafe at 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 <kevinjardine at yahoo.com>
> 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 <kevinjardine at yahoo.com>
> wrote:
> 
> 
> 
> > From: Kevin Jardine <kevinjardine at yahoo.com>
> 
> > Subject: [Haskell-cafe] FastCGI under Windows
> 
> > To: haskell-cafe at 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 at haskell.org
> 
> > http://www.haskell.org/mailman/listinfo/haskell-cafe
> 
> >
> 
> 
> 
> 
> 
> 
> 
> _______________________________________________
> 
> Haskell-Cafe mailing list
> 
> Haskell-Cafe at haskell.org
> 
> http://www.haskell.org/mailman/listinfo/haskell-cafe
> 
> 
> 
> 


      


More information about the Haskell-Cafe mailing list