Re: tutorial for ocamlnet2 fastcgi

Basile STARYNKEVITCH <[email protected]> Tue, 14 Apr 2009 11:17:49 +0200
Newsgroups gmane.comp.lang.ocaml.lib.net.devel
Message-ID <[email protected]>
Christophe TROESTLER wrote:
> On Sun, 05 Apr 2009 19:37:33 +0200, Basile STARYNKEVITCH wrote:
>   
>> I want to at first compile, run, and deploy the 
>> examples/cgi/netcgi2/add_fcgi.ml example
>>     
>
> ocamlfind ocamlc -o add.fcgi -package netcgi2 -linkpkg add.ml add_fcgi.ml 
>
> You then launch ./add.fcgi and tell your webserver to contact it on
> the right port (1201 for add_fcgi).  Remember that the web server may
> contact the fastcgi script through a pipe or a socket and may or may
> not start it.  For Apache, install libapache2-mod-fastcgi and read
> /usr/share/doc/libapache2-mod-fastcgi/mod_fastcgi.html
> /etc/apache2/mods-available/fastcgi.conf
>   
Thanks. I found that myself. I would suggest to ocamlnet developers 
(Gerd mostly) to add the above information in a comment inside add_fcgi.ml.

Actually, I am using omake for my project (to build it) and running it 
thru lighttpd.
>   
>> Basically, the point is that my ocamlfind skills are very rusty.
>>     
>
> Findlib documentation comes with the Debian package.  Install the
> doc-central package, point your browser to http://localhost/dc/ and
> search for findlib.
>   

Thanks for the doc-central tip.

Regards.

-- 
Basile STARYNKEVITCH         http://starynkevitch.net/Basile/
email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359
8, rue de la Faiencerie, 92340 Bourg La Reine, France
*** opinions {are only mines, sont seulement les miennes} ***


------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com