#764465 libapache2-mod-wsgi: weird apache2 integration

#764465#5
Date:
2014-10-08 11:02:23 UTC
From:
To:
Hi,

I just installed libapache2-mod-wsgi to give support to a Python app in the webserver.

My workflow was:
 # aptitude install libapache2-mod-wsgi apache2 postgresql
 [...]
 # a2enmod wsgi
 ERROR: Module wsgi does not exist!

I checked that dpkg -L said some wsgi files should be at /etc/apache2/mods-available,
there aren't.

I tried reinstalling the package:
 # aptitude reinstall libapache2-mod-wsgi
 [...]
 # a2enmod wsgi
 ERROR: Module wsgi does not exist!


The files at /usr/lib/apache2/modules are there:

lrwxrwxrwx 1 root root   15 may 23 08:25 mod_wsgi.so -> mod_wsgi.so-2.7
-rw-r--r-- 1 root root 185K may 23 08:25 mod_wsgi.so-2.6
-rw-r--r-- 1 root root 185K may 23 08:25 mod_wsgi.so-2.7

I had to purge & install the package again to get it working:
 # aptitude purge libapache2-mod-wsgi
 [...]
 # aptitude install libapache2-mod-wsgi
 [...]
 # a2enmod wsgi
 Module wsgi already enabled


So, the problem is fixed for me. But maybe other people is hitting the same
weird behaviour here.

regards.

#764465#10
Date:
2014-10-08 22:05:41 UTC
From:
To:
Just a random thought, are you sure this was a *new* install of
 libapache2-mod-wsgi?

If you had manually deleted the conffile, and then upgraded the package,
the conffile won't get recreated.

Or if you had previously installed the package, and removed it without
purging it, and then manually deleted the conffile.

I don't know if this is your problem or not, just something that could be
the problem.

Unfortunately you didn't quote the output of aptitude which would have
helped to shed light on the issue.