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

apache, django, mod-wsgi, wsgi

Solution

To check if it is installed:

$ dpkg -s libapache2-mod-wsgi

In case it is installed, you might check if it's loaded by Apache:

$ apache2ctl -t -D DUMP_MODULES

Problem

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.

Original source