PAOLO DONADEO PERSONAL BLOG
What is this?
This is the source repository of my personal blog, written in Objective Caml.
License
This software is distributed under the 2-clause BSD license. See the file LICENSE.
Software dependences
The first dependency is Linux. While in principle you should be able to compile and run under Windows and Mac OS X, I never even tried to do so, so all the following instructions are for the Linux OS.
To compile this blog you need the following software and libraries:
-
available as Debian/Ubuntu/RedHat packages:
- Objective Caml (>= 3.11.1)
- Findlib (>= 1.2.4)
- OCaml Batteries Included (>= 1.2.0, but probably any recent version)
- Ocamlnet (2.2.9)
- ocaml-sqlite3 (>= 1.5.1)
- Sexplib (>= 4.2.11)
- pcre-ocaml (>= 6.0.1)
- Cryptokit (>= 1.3)
- libssl-ocaml (>= 0.4.3)
- Lwt (>= 2.1.0)
-
packages you probably must compile and install by hand:
-
CamlTemplate (1.0.2)
-
Lwt_equeue. To get a copy of Lwt_equeue:
$ git clone git://github.com/jaked/lwt-equeue.git
-
Compiling
With the required libraries installed, follow these steps:
-
get the source code:
$ git clone git://github.com/pdonadeo/personal_blog.git
-
compile it:
$ cd personal_blog/src/ $ ocamlbuild -j 4 blog.native $ cp _build/blog.native blog
"blog" is the executable you need.
-
edit blog_devel.conf and modify the options to match your environments, expecially the paths of doc_root, pid_file and netplex_config;
-
edit netplex_devel.conf. This is the Netplex configuration file and explaining the full syntax is out of scope here. Read the excellent manual for details.
However, to configure the blog, simply search for all paths in the file and edit them to match your directory tree.
-
run the local HTTP server, for development:
$ ./blog --config-file `pwd`/blog_devel.conf
-
head your browser to: http://localhost:5900/login, you shoud see the login page of the administration.
Customizing the blog (DB explained)
TODO TODO TODO
Configuring Apache
TODO TODO TODO
Running the FastCGI server
TODO TODO TODO