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 mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by yquem.inria.fr (Postfix) with ESMTP id CF2A3BC37 for ; Thu, 16 Jul 2009 13:28:09 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AnoBABesXkrDL/fVkGdsb2JhbACZPAEBAQEJCQwHEwS2WwmEAgWBQA X-IronPort-AV: E=Sophos;i="4.42,411,1243807200"; d="scan'208";a="29888488" Received: from csmtp3.one.com ([195.47.247.213]) by mail2-smtp-roc.national.inria.fr with ESMTP; 16 Jul 2009 13:27:57 +0200 Received: from debian (unknown [86.48.46.190]) by csmtp3.one.com (Postfix) with ESMTP id 02DAF240283D for ; Thu, 16 Jul 2009 11:27:56 +0000 (UTC) Received: by debian (sSMTP sendmail emulation); Thu, 16 Jul 2009 13:27:55 +0200 Date: Thu, 16 Jul 2009 13:27:55 +0200 From: Anders =?iso-8859-1?Q?Th=F8gersen?= To: caml-list@yquem.inria.fr Subject: Netcgi_fcgi Message-ID: <20090716112755.GA5482@debian> Mail-Followup-To: caml-list@yquem.inria.fr MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) X-Spam: no; 0.00; netcgi:01 netcgi:01 ocamlopt:01 pointers:01 2009:98 2009:98 functioning:98 data:02 anders:02 anders:02 binary:02 executable:03 compiled:04 correctly:04 jul:05 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