4

My Ubuntu server has this version installed:

# dpkg -l | grep wsgi
ii  libapache2-mod-wsgi  2.8-2ubuntu1  Python WSGI adapter module for Apache

How can I get the latest Version 3.3?

2

Download and compile it. There is a pretty good README in their source package. But you can start by installing build-essential the basic system for compiling, then just follow the README

1
  • 1
    Make sure to disable mod_wsgi before you install the newer version 3.3. My Apache crashed with error seg fault or similar nasty error detected in the parent process. – David Xia Feb 25 '12 at 18:13
1

sudo apt-get build-dep libapache2-mod-wsgi

And then you can build from source reading the readme

1

Debian has libapache2-mod-wsgi, but this won't work on Ubuntu 10.04 because it depends on libpython2.7 for which there's no package for 10.04.

I downloaded the source from here:

$ wget http://modwsgi.googlecode.com/files/mod_wsgi-3.3.tar.gz

Then just

./configure
make
sudo make install
0

What worked for me was running this :

sudo aptitude install libapache2-mod-wsgi
1
  • Pranav, please be more specific. You need to explain the things so that people can get a clear idea about your answer. – Pavak Paul Jul 28 '15 at 18:51
0

I had mod_wsgi installed for python 2.7. I ran the below command to uninstall 2.7 and install 3.6 (my python version).

sudo apt-get install libapache2-mod-wsgi

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.