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.
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.
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.
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
Though you are on Ubuntu.
This might help someone else on CentOS, Fedora or Red Hat
rpm -q mod_wsgi
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With