Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save stephenmckinney/2696283 to your computer and use it in GitHub Desktop.
Save stephenmckinney/2696283 to your computer and use it in GitHub Desktop.
Installing mod_wsgi 3.3 for Python 2.6 on Ubuntu Lucid
cd /etc/apache2/mods-enabled
sudo ln -s ../mods-available/headers.load headers.load
...
sudo vim /etc/apache2/sites-enabled/000-default
# Used for New Relic instrumentation
RequestHeader add X-Queue-Start "%t"
...
sudo /etc/init.d/apache2 stop
sudo /etc/init.d/apache2 start
wget http://mirror.pnl.gov/ubuntu//pool/main/m/mod-wsgi/libapache2-mod-wsgi_3.3-2ubuntu2_amd64.deb
sudo dpkg -i libapache2-mod-wsgi_3.3-2ubuntu2_amd64.deb
sudo ln -fs /usr/lib/apache2/modules/mod_wsgi.so-2.6 /usr/lib/apache2/modules/mod_wsgi.so
sudo mv /etc/apache2/mods-available/wsgi.conf /etc/apache2/mods-available/wsgi.conf.old
sudo mv /etc/apache2/mods-available/wsgi.load /etc/apache2/mods-available/wsgi.load.old
sudo mv /etc/apache2/mods-available/wsgi.conf.dpkg-new /etc/apache2/mods-available/wsgi.conf
sudo mv /etc/apache2/mods-available/wsgi.load.dpkg-new /etc/apache2/mods-available/wsgi.load
sudo /etc/init.d/apache2 restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment