How To Install python39-mod_wsgi on Rocky Linux 8
Introduction
In this tutorial we learn how to install python39-mod_wsgi
on Rocky Linux 8.
What is python39-mod_wsgi
The mod_wsgi adapter is an Apache module that provides a WSGI compliant interface for hosting Python based web applications within Apache. The adapter is written completely in C code against the Apache C runtime and for hosting WSGI applications within Apache has a lower overhead than using existing WSGI adapters for mod_python or CGI. Only one Python 3 version of mod_wsgi can be loaded at the same time in httpd, therefore this package conflicts with the other versions available.
We can use yum
or dnf
to install python39-mod_wsgi
on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install python39-mod_wsgi.
Install python39-mod_wsgi on Rocky Linux 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install python39-mod_wsgi
using dnf
by running the following command:
sudo dnf -y install python39-mod_wsgi
Install python39-mod_wsgi on Rocky Linux 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
After updating yum database, We can install python39-mod_wsgi
using yum
by running the following command:
sudo yum -y install python39-mod_wsgi
How To Uninstall python39-mod_wsgi on Rocky Linux 8
To uninstall only the python39-mod_wsgi
package we can use the following command:
sudo dnf remove python39-mod_wsgi
python39-mod_wsgi Package Contents on Rocky Linux 8
/etc/httpd/conf.modules.d/10-wsgi-python3.conf
/usr/bin/mod_wsgi-express-3.9
/usr/lib/.build-id
/usr/lib/.build-id/60
/usr/lib/.build-id/60/e73f69785dc34bc1009b886c065b9e16e715a2
/usr/lib/.build-id/6c
/usr/lib/.build-id/6c/02c1aca9df5a1b7e46cd55fa8ffa3d13668a66
/usr/lib64/httpd/modules/mod_wsgi_python3.so
/usr/lib64/python3.9/site-packages/mod_wsgi
/usr/lib64/python3.9/site-packages/mod_wsgi-4.7.1-py3.9.egg-info
/usr/lib64/python3.9/site-packages/mod_wsgi-4.7.1-py3.9.egg-info/PKG-INFO
/usr/lib64/python3.9/site-packages/mod_wsgi-4.7.1-py3.9.egg-info/SOURCES.txt
/usr/lib64/python3.9/site-packages/mod_wsgi-4.7.1-py3.9.egg-info/dependency_links.txt
/usr/lib64/python3.9/site-packages/mod_wsgi-4.7.1-py3.9.egg-info/entry_points.txt
/usr/lib64/python3.9/site-packages/mod_wsgi-4.7.1-py3.9.egg-info/not-zip-safe
/usr/lib64/python3.9/site-packages/mod_wsgi-4.7.1-py3.9.egg-info/top_level.txt
/usr/lib64/python3.9/site-packages/mod_wsgi/__init__.py
/usr/lib64/python3.9/site-packages/mod_wsgi/__pycache__
/usr/lib64/python3.9/site-packages/mod_wsgi/__pycache__/__init__.cpython-39.opt-1.pyc
/usr/lib64/python3.9/site-packages/mod_wsgi/__pycache__/__init__.cpython-39.pyc
/usr/lib64/python3.9/site-packages/mod_wsgi/docs
/usr/lib64/python3.9/site-packages/mod_wsgi/docs/__init__.py
/usr/lib64/python3.9/site-packages/mod_wsgi/docs/__pycache__
/usr/lib64/python3.9/site-packages/mod_wsgi/docs/__pycache__/__init__.cpython-39.opt-1.pyc
/usr/lib64/python3.9/site-packages/mod_wsgi/docs/__pycache__/__init__.cpython-39.pyc
/usr/lib64/python3.9/site-packages/mod_wsgi/images
/usr/lib64/python3.9/site-packages/mod_wsgi/images/__init__.py
/usr/lib64/python3.9/site-packages/mod_wsgi/images/__pycache__
/usr/lib64/python3.9/site-packages/mod_wsgi/images/__pycache__/__init__.cpython-39.opt-1.pyc
/usr/lib64/python3.9/site-packages/mod_wsgi/images/__pycache__/__init__.cpython-39.pyc
/usr/lib64/python3.9/site-packages/mod_wsgi/images/snake-whiskey.jpg
/usr/lib64/python3.9/site-packages/mod_wsgi/server
/usr/lib64/python3.9/site-packages/mod_wsgi/server/__init__.py
/usr/lib64/python3.9/site-packages/mod_wsgi/server/__pycache__
/usr/lib64/python3.9/site-packages/mod_wsgi/server/__pycache__/__init__.cpython-39.opt-1.pyc
/usr/lib64/python3.9/site-packages/mod_wsgi/server/__pycache__/__init__.cpython-39.pyc
/usr/lib64/python3.9/site-packages/mod_wsgi/server/__pycache__/apxs_config.cpython-39.opt-1.pyc
/usr/lib64/python3.9/site-packages/mod_wsgi/server/__pycache__/apxs_config.cpython-39.pyc
/usr/lib64/python3.9/site-packages/mod_wsgi/server/__pycache__/environ.cpython-39.opt-1.pyc
/usr/lib64/python3.9/site-packages/mod_wsgi/server/__pycache__/environ.cpython-39.pyc
/usr/lib64/python3.9/site-packages/mod_wsgi/server/apxs_config.py
/usr/lib64/python3.9/site-packages/mod_wsgi/server/environ.py
/usr/lib64/python3.9/site-packages/mod_wsgi/server/management
/usr/lib64/python3.9/site-packages/mod_wsgi/server/management/__init__.py
/usr/lib64/python3.9/site-packages/mod_wsgi/server/management/__pycache__
/usr/lib64/python3.9/site-packages/mod_wsgi/server/management/__pycache__/__init__.cpython-39.opt-1.pyc
/usr/lib64/python3.9/site-packages/mod_wsgi/server/management/__pycache__/__init__.cpython-39.pyc
/usr/lib64/python3.9/site-packages/mod_wsgi/server/management/commands
/usr/lib64/python3.9/site-packages/mod_wsgi/server/management/commands/__init__.py
/usr/lib64/python3.9/site-packages/mod_wsgi/server/management/commands/__pycache__
/usr/lib64/python3.9/site-packages/mod_wsgi/server/management/commands/__pycache__/__init__.cpython-39.opt-1.pyc
/usr/lib64/python3.9/site-packages/mod_wsgi/server/management/commands/__pycache__/__init__.cpython-39.pyc
/usr/lib64/python3.9/site-packages/mod_wsgi/server/management/commands/__pycache__/runmodwsgi.cpython-39.opt-1.pyc
/usr/lib64/python3.9/site-packages/mod_wsgi/server/management/commands/__pycache__/runmodwsgi.cpython-39.pyc
/usr/lib64/python3.9/site-packages/mod_wsgi/server/management/commands/runmodwsgi.py
/usr/lib64/python3.9/site-packages/mod_wsgi/server/mod_wsgi-py39.cpython-39-x86_64-linux-gnu.so
/usr/share/doc/python39-mod_wsgi
/usr/share/doc/python39-mod_wsgi/CREDITS.rst
/usr/share/doc/python39-mod_wsgi/README.rst
/usr/share/licenses/python39-mod_wsgi
/usr/share/licenses/python39-mod_wsgi/LICENSE
References
Summary
In this tutorial we learn how to install python39-mod_wsgi
on Rocky Linux 8 using yum and dnf.