[Fixed]-How to check if mod_wsgi is installed on a shared Apache server?


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


Though you are on Ubuntu.

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

rpm -q mod_wsgi


Since you’re on Ubuntu, which is Debian-based, you can look in /etc/apache2/mods-enabled.


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

Leave a comment