How to get the version of wsgi_mod which apache used?

Chandler.Huang picture Chandler.Huang · Apr 19, 2013 · Viewed 20.5k times · Source

I am using ubuntu 12.041 and installed apache through apt-get.

I don't know what version of mod_wsgi i am using albeit I google about it. All I found is you can use apachctl to restart you apache and you would get something like "Apache/2.2.2 (Unix) mod_wsgi/1.0 Python/2.3 configured". But this's not happened to me.

Is there any way to know what version I am using ? Thanks.

Answer

P i picture P i · Jun 5, 2015

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