On Ubuntu 14.04 I've upgraded to Python 2.7.11 using apt-get, and installed mod_wsgi using sudo pip install mod_wsgi
. Now, how do I enable mod_wsgi in Apache? The install instructions (https://modwsgi.readthedocs.org/en/develop/user-guides/quick-installation-guide.html) only mention building from source..
I've figured out that mod_wsgi-py27.so is in /usr/local/lib/python2.7/dist-packages/mod_wsgi/server
, but not sure if I'm supposed to do the rest of the installation by manually editing apache config files..?
This is going to be a production machine that is managed through Puppet by the ops team (iow, it doesn't sound like mod_wsgi-express would be the way to go, but maybe I'm wrong..?)
Update: I might have gotten it to work by apt-get installing the (old) system version, and then hand-editing /etc/apache2/mods-available/wsgi.load
to point to the pip-installed (new) mod_wsgi-py27.so
. Not sure if this is copacetic, however everything in wsgi.conf
is commented out by default so maybe..?