Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get the version of wsgi_mod which apache used?

Tags:

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.

like image 360
Chandler.Huang Avatar asked Apr 19 '13 04:04

Chandler.Huang


People also ask

How to know mod_ wsgi version?

mod_wsgi – Get The Versiond/example.com. conf if you use CentOS, RHEL etc., or to /etc/apache2/conf. d/example.com. conf for Debian, Ubuntu etc.

What is Apache WSGI?

mod_wsgi is an Apache HTTP Server module that embeds a Python application within the server and allow them to communicate through the Python WSGI interface as defined in the Python PEP 333. WSGI is one of the Python ways to produce high quality and high performance web applications.

Where is mod_wsgi so?

If installing the Apache module by hand, the file is called 'mod_wsgi.so'. The compiled Apache module can be found in the “. libs” subdirectory. The name of the file should be kept the same when copied into its appropriate location.


1 Answers

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

like image 73
P i Avatar answered Oct 10 '22 03:10

P i