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
> 
> 

_______________________________________________
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

Reply via email to