File: README

package info (click to toggle)
camltemplate 1.0.2-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 944 kB
  • sloc: ml: 2,427; makefile: 296; sh: 51
file content (26 lines) | stat: -rw-r--r-- 656 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
This example isn't built by default, because it requires Christophe
Troestler's OCaml-CGI package.

1. Install mod_fastcgi, and put something like this in Apache's
httpd.conf:

LoadModule fastcgi_module /usr/lib/apache2/modules/mod_fastcgi.so

<IfModule mod_fastcgi.c>
  Alias /fcgi-bin/ /var/www/fcgi-bin/

  <Location /fcgi-bin>
    Options ExecCGI
    SetHandler fastcgi-script
    Allow from all
  </Location>
</IfModule>

2. Download and compile OCaml-CGI
(http://sourceforge.net/projects/ocaml-cgi/).

3. Change the paths in this example's Makefile, if necessary.

4. make; make install

5. Open http://localhost/fcgi-bin/fcgihello in a web browser.