wiki:InstallationGuidelines/Cherokee

Version 10 (modified by Fran Boon, 10 years ago) ( diff )

--

Installation on Cherokee

This is supposed to be the fastest system for High-Volume sites

uWSGI

uWSGI allows different virtual hosts to reload their modules without restarting for other users.

Install uWSGI

Needs installing from Source:

apt-get install -y libxml2-dev make
wget http://projects.unbit.it/downloads/uwsgi-0.9.7.2.tar.gz
tar zxvf uwsgi-0.9.7.2.tar.gz
cd uwsgi-0.9.7.2
make
cp uwsgi /usr/local/bin
cd ..

Install Cherokee

Whilst there is a version in Squeee, better to install the latest to gain performance advantages on static content:

apt-get install -y gettext libgeoip-dev libssl-dev rrdtool make
apt-get install -y git devscripts git-buildpackage bison flex autotools-dev libpam0g-dev libldap-dev libmysqlclient-dev libavformat-dev libavcodec-dev libavutil-dev libpcre3-dev libbz2-dev
git clone git://git.debian.org/collab-maint/cherokee.git
cd cherokee
uscan --force
git-buildpackage
cd ../build-area/
dpkg -i libcherokee-base0_1.2.2-2_i386.deb
dpkg -i libcherokee-client0_1.2.2-2_i386.deb
dpkg -i libcherokee-server0_1.2.2-2_i386.deb
dpkg -i libcherokee-mod-libssl_1.2.2-2_i386.deb
dpkg -i libcherokee-mod-rrd_1.2.2-2_i386.deb
dpkg -i cherokee_1.2.2-2_i386.deb
dpkg -i cherokee-admin_1.2.2-2_i386.deb

Configure Cherokee for uWSGI

cat << EOF > "/home/web2py/uwsgi.xml"
<uwsgi>
    <pythonpath>/home/web2py/</pythonpath>
    <app mountpoint="/">
        <script>wsgihandler</script>
    </app>
</uwsgi>
EOF

FastCGI

http://web2py.com/AlterEgo/default/show/17


InstallationGuidelines

Attachments (1)

Download all attachments as: .zip

Note: See TracWiki for help on using the wiki.