Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to check if mod_wsgi is installed on a shared Apache server?

I am looking into deploying a Django project on a shared server running Apache. This is my first time doing this. I have a shared folder on the server for my work and I have been added to the sudo group so I can install new software.

How do I check via Terminal command line if mod_wsgi is already installed? and preferably what version it is?

I can ssh onto the server, the version of Apache is

$ apache2 -v
Server version: Apache/2.2.22 (Ubuntu)
Server built:   Jul 12 2013 13:37:10
$ 

Any help is much appreciated.

EDIT:

Just for future reference, after I ran the command $ dpkg -s libapache2-mod-wsgi provided by Dirk Eschler it showed me that it was not installed. It returned

Package `libapache2-mod-wsgi' is not installed and no info is available.
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.

Hope this helps someone else.

like image 934
Deepend Avatar asked May 27 '14 13:05

Deepend


People also ask

How do I know what version of Wsgi I have?

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

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.


2 Answers

if you working with python in Red Hat search this for mod_wsgi installed or not yum search python3-mod_wsgi

or search this for module is loaded or not rpm -q python3-mod_wsgi

like image 128
Ronny Dsouza Avatar answered Oct 24 '22 19:10

Ronny Dsouza


Though you are on Ubuntu.

This might help someone else on CentOS, Fedora or Red Hat

rpm -q mod_wsgi
like image 30
Kudehinbu Oluwaponle Avatar answered Oct 24 '22 19:10

Kudehinbu Oluwaponle