Skip to content

Instantly share code, notes, and snippets.

View TT1943's full-sized avatar

Sherlock Lim TT1943

  • San Francisco
View GitHub Profile
@TT1943
TT1943 / setup_ec2_py27_mod_wsgi.sh
Created July 2, 2016 08:24 — forked from havencruise/setup_ec2_py27_mod_wsgi.sh
Django + Python2.7 + Apache setup for AWS EC2 with mod_wsgi A how-to on setting up Python 2.7, Django and mod_wsgi, and using Python 2.7 with virtual_env(which is the right thing to do) on Amazon EC2 instances. .. .. .. Why? - Because Amazon EC2 instances usually come with Python 2.6 by default.
# You will need to run these with superuser permissions.
# Either prefix `sudo` to all commands, or switch user
# Be very careful when you switch user
sudo su - root
# Update all the packages
yum update
# Install the basics - python27, gcc, svn, git, httpd, make, uuid