Experiments with Linux


Quickest Way to Install Cherokee on Raspbian - Addendum

Submitted by Derwent Ready on Wednesday, 08 January 2014

A few days ago I wrote an article on a single line installation for Cherokee Web Server on Raspbian for the Raspberry Pi. At the time it worked perfectly, as tested by myself because my Pi had suffered a catastrophic SD card failure. However I just had to repeat the process and my single line installation fell down when I tried to modify and copy the startup script. In the 4 days since I last installed Cherokee and wrote that article it seems that Cherokee has changed the name of the startup script and added a few alternatives for different startup procedures, nice if you need them but I'm noticing a pattern. Everytime I write about doing something with Cherokee the process changes slightly. Coincidence? I think so. Anyway, here is the explanation of what's changed. At the point where previously you would:

chmod +x contrib/cherokee && sudo cp contrib/cherokee /etc/init.d

you will need to change the file being referenced to:
contrib/cherokee_init-script

So the command will now be chmod +x contrib/cherokee_init-script && sudo cp contrib/cherokee_init-script /etc/init.d/cherokee


From then on the single command is the same. If you'd like to try the new single line installation of Cherokee it is now:

sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get install -y gettext automake autoconf libtool && git clone --recursive http://github.com/cherokee/webserver.git && cd webserver && ./autogen.sh --prefix=/usr --localstatedir=/var --sysconfdir=/etc --with-wwwroot=/home/pi/www && make && sudo make install && chmod +x contrib/cherokee && sudo cp contrib/cherokee_init-startup /etc/init.d/cherokee && sudo update-rc.d cherokee defaults && sudo reboot

If you would like to know the explanations for the commands being used look at the original article.


As per my last article Raspbian currently has a version of Mathematica that interfers with the startup process for Cherokee (though I didn't bother checking if the new Cherokee startup script fixed this because I'd assumed nothing had changed in 4 days when I performed the fix). If you'd like to fix this conflict please have a look at Temporary Fix For Cherokee on Raspbian

Anyway, I hope you found this article useful. Let me know on Twitter if you liked it.


If you liked this blog post, why not buy me a beverage?

Blog Appreciation: Usefulness