How to get the version of wsgi_mod which apache used?

I use this

dpkg -l | grep wsgi

I don't know what it is doing, but it is a version?

As an aside that is probably not right, the version i have -

libapache2-mod-wsgi  (on ubuntu 10.04)

is not python 3.x compliant. How I know that is a mystery - some random web forum. Also, how you'd actually work out which version is in the libapache2 version is beyond my ken.

But, ah, that unix script above will get the version for you. You're on your own after that, sailor.


If you restart Apache and inspect the log:

sudo apachectl -k restart
tail -n 5 /var/log/apache2/error.log

... you should see the version:

[Fri Jun 05 15:13:46.546029 2015] [mpm_prefork:notice] [pid 2245] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.9 mod_wsgi/3.4 Python/3.4.0 configured -- resuming normal operations