What's the best way to install mod-wsgi for a specific version of python (2.7) on Debian (squeeze)?

Posted by Pascal Polleunus on Server Fault See other posts from Server Fault or by Pascal Polleunus
Published on 2012-07-02T07:45:31Z Indexed on 2012/07/02 9:17 UTC
Read the original article Hit count: 200

Filed under:
|
|

System info:

Debian Squeeze
Python versions: 2.6.6 (default) & 2.7.2
mod-wsgi: 3.3-2
    in /usr/lib/apache2/modules:
        mod_wsgi.so -> mod_wsgi.so-2.6
        mod_wsgi.so-2.5
        mod_wsgi.so-2.6

I've a virtualenv configured with Python 2.7 but my application runs 2.6.6, apparently because mod-wsgi is using the default version of the system.
The way to go seems to configure mod-wsgi to use 2.7 (i.e. system-wide, not specific to a virtualenv).

How can I install mod_wsgi.so-2.7?
After installing that, I'll just have to change the symlink mod_wsgi.so to mod_wsgi.so-2.7.

© Server Fault or respective owner

Related posts about debian

Related posts about python