On Mon, 10 Jul 2006, "Jonathan Hayward http://JonathansCorner.com" wrote: > > What should the shebang line say? > #!/usr/local/bin/ocaml #!/usr/local/bin/ocamlrun ocaml You also need to load the necessary libraries: #load "pcre.cma";; #load "unix.cma";; ... #load "netcgi.cma";; (see attached file). > when I run it from within apache I get an internal server error. (A > copy of the command line output follows the script). Do you run is as CGI ? Also beware that the newer Netcgi module is not in the tarball you mentioned. Get the SVN version if you want to use it (I am not sure the build system already compiles it as its insersion is very recent but I can fix that). Cheers, ChriS