how can I change the default version mod_wsgi uses?
I am using Debian 5 with Apache 2.
how can I change the default version mod_wsgi uses?
I am using Debian 5 with Apache 2.
Look for /usr/lib/apache2/modules/mod_wsgi.so*
, at least on ubuntu I have:
/usr/lib/apache2/modules/mod_wsgi.so -> mod_wsgi.so-2.6
/usr/lib/apache2/modules/mod_wsgi.so-2.5
/usr/lib/apache2/modules/mod_wsgi.so-2.6
If you change the symlink, you change the default mod_wsgi.
An alternative is to look in /etc/apache2/mods-enabled/wsgi.load
, for me that's just one line:
LoadModule wsgi_module /usr/lib/apache2/modules/mod_wsgi.so
If you point that at one of those mod_wsgi.so-2.x
files, you've changed the default version.
When you say different version you mean Python 2.5 vs 2.6, then you must install mod_wsgi package binary compiled against Python 2.5, or compile mod_wsgi from source code yourself against the Python 2.5 version. See notes about --with-python option in:
http://code.google.com/p/modwsgi/wiki/QuickInstallationGuide#Configuring_The_Source_Code
you should look into using virtualenv. I think that is what you are looking for