Fixing cherokee-admin on Fedora 16 (possibly other distros, too)

(written by Michael Grunewalder on November 25, 2011)

If you like the cherokee webserver (http://www.cherokee-project.com) you may have problems with the admin interface. In my case, i got an empty error message on the screen when I tried to install PHP, then when i ran the admin interface in debugging mode (cherokee-admin -x), i got some python error messages. Took me a while of research until I found out that the admin interface in the version that installed with Fedora 16 is actually broken. No fix for it was in my repositories (it is possible that i am not setup properly yet as I just switched from Ubuntu to Fedora), so for a moment I was afraid that I cannot use Cherokee for the time being.

What are the options to fix it?

One option is to re-install from sources using the latest sourcecode. Personally I don’t like that because I just prefer to stick to the package system of the distribution.

What else can we do?

The admin interface for Cherokee is actually written in Python. So here is what I did to get my admin interface up and running:

1) download the latest sources from http://www.cherokee-project.com/downloads.html and unpack the tarball
2) open the file “configured.py” and modify the top entries like so:

PREFIX = "/usr"
LIBDIR = "/usr/lib"
DATADIR = "/usr/share"
DOCDIR = "/usr/share/doc/cherokee"
LOCALEDIR = "/usr/share/locale"
WWWROOT = "/var/www"
SYSCONFDIR = "/etc"
LOCALSTATE = "/var"

3) Open a terminal window and become root (sudo -i)
4) change to /usr/share/cherokee and delete the admin folder.
5) copy the admin folder from the source code (with the modified configured.py file) into /usr/share/cherokee
6) start cherokee-admin and enjoy.

No related posts.

 
Proudly powered by WordPress and Carrington.