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 3EC01BC37 for ; Thu, 16 Jul 2009 17:08:58 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AnoBAC7fXkrDL/fOkGdsb2JhbACOcopKAQEBAQkJDAcTBLh4CYQCBYFAiAI X-IronPort-AV: E=Sophos;i="4.42,411,1243807200"; d="scan'208";a="31264911" Received: from csmtp2.one.com ([195.47.247.206]) by mail3-smtp-sop.national.inria.fr with ESMTP; 16 Jul 2009 17:08:57 +0200 Received: from debian (unknown [86.48.46.190]) by csmtp2.one.com (Postfix) with ESMTP id F26AA1B00C60B; Thu, 16 Jul 2009 15:08:55 +0000 (UTC) Received: by debian (sSMTP sendmail emulation); Thu, 16 Jul 2009 17:08:54 +0200 Date: Thu, 16 Jul 2009 17:08:54 +0200 From: Anders =?iso-8859-1?Q?Th=F8gersen?= To: Christophe TROESTLER Cc: caml-list@yquem.inria.fr Subject: Re: [Caml-list] Netcgi_fcgi Message-ID: <20090716150854.GA16324@debian> Mail-Followup-To: Christophe TROESTLER , caml-list@yquem.inria.fr References: <20090716112755.GA5482@debian> <20090716.162741.668523372145744396.Christophe.Troestler+ocaml@umons.ac.be> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20090716.162741.668523372145744396.Christophe.Troestler+ocaml@umons.ac.be> User-Agent: Mutt/1.5.18 (2008-05-17) X-Spam: no; 0.00; netcgi:01 christophe:01 troestler:01 0200,:01 netcgi:01 ocamlopt:01 stdin:01 sockaddr:01 mli:01 stdout:01 beginner's:01 ocaml:01 bug:01 2009:98 connectors:98 Hello, On 16:27 Thu 16 Jul 2009, Christophe TROESTLER wrote: > On Thu, 16 Jul 2009 13:27:55 +0200, Anders Thøgersen wrote: > > > > 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. > > You should be aware that there are several ways for a web server to > contact a FCGI script. According to what you say, you are expecting > the web server to start (then and contact the script on stdin), in > which case you have to comment out the "sockaddr" argument (see > netcgi_fcgi.mli). The counter_fcgi.ml example, as it prints on I have also tried this, but to no avail. I still get an internal server error and a message about a timeout in the logs. > stdout, expects to be started manually and be contacted by the web > server on port 1200. Please see the FCGI doc about how to do that. > http://www.fastcgi.com/mod_fastcgi/docs/mod_fastcgi.html I believe I have done this part correctly, though. Here's a sample session when starting the program from the commandline as you suggest: $ ./counter.fcgi ./counter.fcgi (FCGI) listening on port 1200. And in another shell: $ lynx 127.0.0.1:1200 This waits indefinately. A timeout is also what is reported by mod_fastcgi. Maybe I am missing something very obviuos. Often that is a reason for obscure problems like this :-/ > > If you believe that the examples should tell more about how FCGI > connectors work, feel free to write some comment to put at the > beginning of the files and send it to me. Yes, I must admint that my knowledge of the FCGI protocol is limited. I will gladly do this once I get to the bottom of this problem. Regards Anders > Best, > C. > > _______________________________________________ > 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 > >