Skip to content

Instantly share code, notes, and snippets.

@thurloat
Created May 18, 2011 22:41
Show Gist options
  • Save thurloat/979763 to your computer and use it in GitHub Desktop.
Save thurloat/979763 to your computer and use it in GitHub Desktop.
Installing Cherokee and uWSGI on a standard EC2 box
# Install dev tools for cherokee installation
sudo yum groupinstall "Development Tools"
sudo wget http://cherokee-project.com/install && sudo python install
# Install a bunch of def packages for uwsgi install correctly
sudo yum install python python-devel libxml2 libxml2-devel python-setuptools zlib-devel wget openssl-devel pcre pcre-devel sudo gcc make autoconf automake
# Install UWSGI to /opt/uwsgi/uwsgi
cd /opt/
sudo wget http://projects.unbit.it/downloads/uwsgi-0.9.6.5.tar.gz
sudo tar -zxvf uwsgi-0.9.6.5.tar.gz
sudo mv uwsgi-0.9.6.5 uwsgi
cd uwsgi
sudo make -f Makefile.Py26
cd ..
sudo chown -R www:www uwsgi
# Install postgresql and the psycopg connector
sudo yum install postgresql postgresql-devel postgresql-server
pip install psycopg2
# Start up the cherokee admin server, and bind it to the outside world
sudo /opt/cherokee/sbin/cherokee-admin -b
# setup new uWSGI application
# executable: /opt/uwsgi/uwsgi
# config file: /home/www/django_uwsgi.xml
# after wizard, add the -H option to specify the virtualenv: /opt/uwsgi/uwsgi -H {VIRTUAL_ENV_DIR}
# see: http://projects.unbit.it/uwsgi/wiki/VirtualEnv
@pmdarrow
Copy link

Lines 9 to 15 can be replaced with pip install uwsgi :)

@thurloat
Copy link
Author

thurloat commented Aug 25, 2011 via email

@pmdarrow
Copy link

It actually might need to be sudo pip install uwsgi but yes, as long as you've run line 6, it works fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment