From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by yquem.inria.fr (Postfix) with ESMTP id 441C7BC37 for ; Thu, 16 Jul 2009 15:31:07 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AnoBAOzIXkrDL/fOkGdsb2JhbACOcopKAQEBAQkJDAcTBLdPCYQCBYFA X-IronPort-AV: E=Sophos;i="4.42,411,1243807200"; d="scan'208";a="31259376" Received: from csmtp2.one.com ([195.47.247.206]) by mail3-smtp-sop.national.inria.fr with ESMTP; 16 Jul 2009 15:31:06 +0200 Received: from debian (unknown [86.48.46.190]) by csmtp2.one.com (Postfix) with ESMTP id 6B28E1B00A019; Thu, 16 Jul 2009 13:31:04 +0000 (UTC) Received: by debian (sSMTP sendmail emulation); Thu, 16 Jul 2009 15:31:03 +0200 Date: Thu, 16 Jul 2009 15:31:03 +0200 From: Anders =?iso-8859-1?Q?Th=F8gersen?= To: Christoph Bauer Cc: caml-list@yquem.inria.fr Subject: Re: [Caml-list] Netcgi_fcgi Message-ID: <20090716133103.GA12249@debian> Mail-Followup-To: Christoph Bauer , caml-list@yquem.inria.fr References: <20090716112755.GA5482@debian> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) X-Spam: no; 0.00; netcgi:01 netcgi:01 ocaml:01 ocaml:01 lib:01 ocamlopt:01 pointers:01 beginner's:01 bug:01 2009:98 2009:98 functioning:98 ,...:98 functioning:98 beginners:01 Hi, On 14:58 Thu 16 Jul 2009, Christoph Bauer wrote: > Hi, > > I don't know the netcgi stuff, but from the message I guess, that > your HTTP-Header of your script is wrong. Make sure, that > the first lines of your program are a valid HTTP header, and that > each line is terminated with \r\n. Before your HTML, there > should be an empty line (i.e. \r\n\r\n). I do not think this is the case since these are the example programs that come with the distribution and so should work out of the box. I have tried the counter_fcgi and add_fcgi examples under mod_fcgid and mod_fastcgi with apache2, but I can not get the examples to work. Under mod_fastcgi I get a slightly different error message: [Thu Jul 16 15:05:09 2009] [error] [client 127.0.1.1] FastCGI: comm with server "/home/alt/projects/ocaml/www/counter.fcgi" aborted: idle timeout (30 sec) [Thu Jul 16 15:05:09 2009] [error] [client 127.0.1.1] FastCGI: incomplete headers (0 bytes) received from server "/home/alt/projects/ocaml/www/counter.fcgi" Which suggests that apache and counter.fcgi can see each other, but that the communication between the two is somehow not functioning. I should mention that I am using the netcgi2 lib from godi-ocamlnet. Previously I used debians standard ocaml packages, but I am now using godi exclusively. Maybe I have somehow linked with something from my old ocaml installation and in this way messed something up? I'll keep trying for a while,... Regards Anders > Christoph Bauer > > > -----Original Message----- > > From: caml-list-bounces@yquem.inria.fr > > [mailto:caml-list-bounces@yquem.inria.fr] On Behalf Of Anders > > Thøgersen > > Sent: Thursday, July 16, 2009 1:28 PM > > To: caml-list@yquem.inria.fr > > Subject: [Caml-list] Netcgi_fcgi > > > > Hello, > > > > I am trying to get the fastcgi examples from netcgi2 to work, > > but am having some problems with this. I am running with > > apache2 and mod_fcgid. > > > > I have compiled the counter_fcgi example with ocamlopt and > > copied the executable to my fcgid directory. When pointing > > my browser at the url of the binary I get an internal server > > error and the logs contain the > > following: > > > > [Thu Jul 16 13:20:38 2009] [warn] (104)Connection reset > > by peer: mod_fcgid: read data from fastcgi server error. > > [Thu Jul 16 13:20:38 2009] [error] [client 127.0.1.1] > > Premature end of script headers: counter.fcgi > > > > I can see that a socket is created for communication between > > apache and counter.fcgi, so something is functioning > > correctly, and I am unsure what the problem might be. > > > > Any pointers are welcome! > > > > Regards > > Anders > > > > _______________________________________________ > > Caml-list mailing list. Subscription management: > > http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list > > Archives: http://caml.inria.fr > > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > > Bug reports: http://caml.inria.fr/bin/caml-bugs > > > >