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=1.3 required=5.0 tests=AWL,SPF_SOFTFAIL 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 62A60BC37 for ; Thu, 16 Jul 2009 16:27:44 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AoACAM/VXkrBvsFKl2dsb2JhbACZPAEBAQEBCBUHuEmECwWBQA X-IronPort-AV: E=Sophos;i="4.42,411,1243807200"; d="scan'208";a="31262347" Received: from dnsp.umh.ac.be (HELO hermes1.umh.ac.be) ([193.190.193.74]) by mail3-smtp-sop.national.inria.fr with ESMTP; 16 Jul 2009 16:27:43 +0200 Received: from poincare.swapping.umh.ac.be (poincare.swapping.umh.ac.be [10.102.100.62]) by hermes1.umh.ac.be (8.14.2/8.13.6) with ESMTP id n6GEO4LT475230; Thu, 16 Jul 2009 16:24:04 +0200 Received: from localhost ([127.0.0.1] ident=trch) by poincare.swapping.umh.ac.be with esmtp (Exim 4.69) (envelope-from ) id 1MRRvy-0005Qb-21; Thu, 16 Jul 2009 16:27:42 +0200 Date: Thu, 16 Jul 2009 16:27:41 +0200 (CEST) Message-Id: <20090716.162741.668523372145744396.Christophe.Troestler+ocaml@umons.ac.be> To: anders@bladre.dk Cc: caml-list@yquem.inria.fr Subject: Re: [Caml-list] Netcgi_fcgi From: Christophe TROESTLER In-Reply-To: <20090716112755.GA5482@debian> References: <20090716112755.GA5482@debian> X-Face: #2fb%mPx>rRL@4ff~TVgZ"<[:,oL"`TUEGK/[8/qb58~C>jR(x4A+v/n)7BgpEtIph_neoLKJBq0JBY9:}8v|j Organization: University of Mons X-Mailer: Mew version 6.2.51 on Emacs 22.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.64 on 193.190.193.76 X-Spam: no; 0.00; netcgi:01 christophe:01 troestler:01 christophe:01 troestler:01 ocaml:01 0200,:01 netcgi:01 ocamlopt:01 stdin:01 sockaddr:01 mli:01 stdout:01 2009:98 connectors:98 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 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 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. Best, C.