The Chrerokee Web Server is an extremely fast modular opensource HTTP daemon written by my good friend Alvaro Lopez Ortega from Spain. The project has recently been making great progress towards the 1.0 release. The product has been very stable for years and since version 0.6 includes a web-based administration interface so you can avoid tweaking text files manually like you still have to do with Apache, Lighttpd or nginx.
Installing the latest Cherokee package in Ubuntu Hardy can be a little tricky. The version that’s included with the distribution is mantained by the MOTU team and based on the Debian version mantained by another good friend Gunnar Wolf from Mexico.
The packages for the latest version of Cherokee are mantained by Leonel Nuñez, also from Mexico, and are found in his PPA apt repo so in order to install them on Hardy you have to follow these steps:
STEP 1) Add the PPA repo to /etc/apt/sources.list
Simple adding this two lines to the files does the trick:
deb http://ppa.launchpad.net/leonelnunez/ubuntu/ hardy main deb-src http://ppa.launchpad.net/leonelnunez/ubuntu/ hardy main
STEP 2) Configure the prefered version of the packages at /etc/apt/preferences
This is the most tricky part, simply add these lines in this file. If you don’t have it just create it.
Package: cherokee Pin: version 0.9.4-1* Pin-Priority: 999 Package: cget Pin: version 0.9.4-1* Pin-Priority: 999 Package: libcherokee-base0 Pin: version 0.9.4-1* Pin-Priority: 999 Package: libcherokee-base0-dev Pin: version 0.9.4-1* Pin-Priority: 999 Package: libcherokee-config0 Pin: version 0.9.4-1* Pin-Priority: 999 Package: libcherokee-config0-dev Pin: version 0.9.4-1* Pin-Priority: 999 Package: libcherokee-server0 Pin: version 0.9.4-1* Pin-Priority: 999 Package: libcherokee-server0-dev Pin: version 0.9.4-1* Pin-Priority: 999
When a newer package appears in the PPA repo it will be installed or upgraded. Version 0.9.4-1 is there simple because it was the current packaged version at the time of writing this blog post. The important bit is having Cherokee 0.9.x and not Cherokee 0.5.6 installed in your box.
STEP 3) Update your APT sources and install Cherokee
$ sudo apt-get update $ sudo apt-get install cherokee
That’s it. Give it a try! I’ll be using it for serving static content here on my blog.




















Recent Comments