Both Lighttpd and Ode are quite light weight. Lighttpd is a www server like Apache while Ode is a blog software like WordPress. They’re the best couple for simple personal blog especially installed on your laptop. In Debian Squeeze, you’ll need to tweak something to get it work.
1, Install lighttpd and change the default cgi-bin location
$ apt-get install lighttpd # install lighttpd, it will run default when boot
The default cgi-bin scripts is in /usr/share/cgi-bin within Debian, but I wanna change it to /var/www, so create a directory and tweak the lighttpd configuration later.
$ mkdir -p /var/www/cgi-bin # create directory
$ lighty-enable-mode cgi # enable CGI module of lighttpd
$ vim /etc/lighttpd/conf-enable/10-cgi.conf #relocate the cgi directory
$HTTP["url"] =~ “^/cgi-bin/” {
cgi.assign = ( “.cgi” => “/usr/bin/perl” )
}
Make sure the configuration have above such section.
2, Install Ode
$ wget http://ode-is-simple.com/downloads/ode_releases/ode_current.zip # download ode
Unpress it and read the install manual carefully, after that move ode files to propriate location:
$ mv Part1/ode.cgi /var/www/cgi-bin/
$ mv -r Part3/ode_site /var/www/ode
$ mv -r Part2/data /var/www/ode/
Set the cofiguration:
$ vim /var/www/cgi-bin/ode.cgi #set the location of ode configuration file
$config_dir_f = ‘/var/www/ode/data/’;
$config_filename_f = ‘ode_config’;
$ vim /var/www/ode/data/ode_config
$document_root = ‘/var/www/ode’;
$document_root = ‘/var/www/ode’;
Set the right file permission:
$ ls -l /var/www/
drwxr-xr-x 2 root root 4096 Feb 12 13:12 cgi-bin
drwxr-xr-x 4 root root 4096 Feb 11 18:18 ode
