Created
May 18, 2011 22:41
-
-
Save thurloat/979763 to your computer and use it in GitHub Desktop.
Installing Cherokee and uWSGI on a standard EC2 box
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It actually might need to be
sudo pip install uwsgi
but yes, as long as you've run line 6, it works fine.