I can't install Cherokee

6 posts
by tokask » Sat Nov 03, 2012 2:40 pm
Hi, last Raspberry board with 512Mb.
I've installed raspbian but I can not install Cherokee web server :

$ sudo apt-get install cherokee
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package cherokee is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'cherokee' has no installation candidate

Posts: 2
Joined: Sat Nov 03, 2012 1:21 pm
by Sander » Sat Nov 03, 2012 7:37 pm
Raspbian is based on Wheezy (isn't it?), and Wheezy does not contain Cherokee: http://packages.debian.org/search?suite ... s=cherokee

Could that be the explanation?
User avatar
Posts: 174
Joined: Wed Aug 31, 2011 1:01 pm
by Sander » Sun Nov 04, 2012 10:56 am
I've created a cherokee package for you. You can install it like this:

Code: Select all
wget http://www.appelboor.com/dump/cherokee_1.2.99b-1_armhf.deb
sudo dpkg -i cherokee*deb
sudo ldconfig

If you prefer to create it yourself, here's how:

Code: Select all
sudo apt-get install checkinstall

wget http://www.cherokee-project.com/download/trunk/cherokee-latest-snapshot.tar.gz
tar xvzf cherokee-latest-snapshot.tar.gz
cd cherokee-1.2.99b/
sudo make install
sudo ldconfig

sudo checkinstall -D
ls -al *deb

That last command should should the .deb package:

Code: Select all
-rw-r--r-- 1 root root 9326098 Nov  4 10:08 cherokee_1.2.99b-1_armhf.deb

User avatar
Posts: 174
Joined: Wed Aug 31, 2011 1:01 pm
by candyman1976 » Fri Jan 11, 2013 4:21 am
Thank you thank you thank you! This is exactly what I was looking for. I appreciate the extra details as well.
Posts: 1
Joined: Fri Jan 11, 2013 4:19 am
by wdtaylor » Fri Jan 18, 2013 3:14 am
How can I make cherokee start when system boots using this install method?
Posts: 1
Joined: Fri Jan 18, 2013 3:12 am
by JozzaTheWick » Sun Feb 24, 2013 6:24 pm
First up, thanks to Sander for the help on Cherokee. I ended up having to build it myself since I'm using the soft-float ABI, so both sets of instructions were helpful.

Secondly, setting Cherokee to start at boot.

There is a start / stop script in the contrib source directory. (I installed from source, so I had the source directory already. Not sure what happens with Sander's .deb package, but you can always download the source package just to get the script.)

It needs to be copied into the appropriate directory & registered. This should be done with root privileges, so either change to the root user or use sudo before each command:
Code: Select all
cd <whereever you extracted the Cherokee source code>
cp contrib/cherokee /etc/init.d/
chmod 755 /etc/init.d/cherokee
update-rc.d /etc/init.d/cherokee defaults

The last command will give a warning about 'script cherokee missing LSB tags and overrides', which is due to a change in the way Debian handles dependency-based booting. I don't know enough about Debian to suggest how to tweak the script, and it still worked for me, so I would just ignore the warning :)

When you restart your Pi, you should see a message during the boot sequence about Cherokee starting up, and you'll be able to access your web server immediately!

Finally, here's a link on how to get to the Cherokee admin interface:


I have a mainly headless setup, so I use
Code: Select all
sudo cherokee-admin -b
and then browse to http://<my PI IP address>:9090 to get to the admin site. This is not the most secure way, but it works for me. See the link for full details. Also note that cherokee-admin must be run as root.

Link to the startup script (scroll down to 'Autostart'): http://www.cherokee-project.com/doc/basics_installation_unix.html
LSB: http://wiki.debian.org/LSBInitScripts/DependencyBasedBoot
Posts: 1
Joined: Sun Feb 24, 2013 5:53 pm