Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Christophe TROESTLER <Christophe.Troestler+ocaml@u...>
Subject: Re: [Caml-list] Netcgi_fcgi
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 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. 

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.