Install Cherokee in Slitaz

Nowadays there is a new comer on web server market – cherokee, they said they won the benchmark and security measurement, plus a graphic admin interface for easy maintenance. It is a good choice with Slitaz to hold a web server, because both are small, young and growing.

N.B. : This article helps people build cherokee in Slitaz stable or people who want to try the latest version of cherokee. For people who using cooking release please direct install cherokee by using tazpkg get-install cherokee.

Before install Cherokee, a Slitaz system must be ready. Other Linux distro sure works, too

A. Install the development packages
We need start installing development packages, libraries and 3rd party packages in order to compile our little toy.

tazpkg get-install slitaz-toolchain

It will continue to install the missing packages if any. When you saw the following question, just enter “No” to continue

Do you want Bash for /bin/sh (yes/No) ? :

B. Install other packages
Continue install the following packages after the previous steps finished.

binutils
python
libsasl-modules
libsasl
libldap
libkrb5
libkr5support
libcomerr3
cyrus-sasl
cyrus-sasl-dev
openssl
openssl-dev
gettext
php
php-openssl
php-mysql
php-pear
php-gd
mysql
mysql-dev
ffmpeg
ffmpeg-dev
zlib
zlib-dev

C. Install 3rd party package, geoip (C Library version)
Download the geoip in the official site, http://www.maxmind.com/app/api. After un-tar the tarball file, execute the following code, default is installed in /usr/local/lib.

./configure
make
make check
make install

D. Compile and Install Cherokee
Everything is ready and we start to build-up our toy. Type the following to compile

./configure –localstatedir=/var \
–prefix=/usr/local \
–sysconfdir=/etc \
–with-wwwroot=/var/www \
–with-wwwuser=www \
–with-wwwgroup=www
make
make install

All installation files will be placed under /usr/local. To execute Cherokee, execute the following command.

/usr/local/sbin/cherokee

Same way to run the admin mode, but sure execute cherokee-admin instead.

Leave a comment

Please leave your comment on the topic

This site uses Akismet to reduce spam. Learn how your comment data is processed.