Introduction
First place to start is the docs:
https://modwsgi.readthedocs.io/en/develop/user-guides/quick-installation-guide.html
Advises to install dev packages for apache and python if not installed. Use the latest version from source rather than using the versions in the repos. Once you’ve built from source, just do the following:
sudo nano /etc/apache2/mods-available/wsgi.load
add the next string to the file
LoadModule wsgi_module /usr/lib/apache2/modules/mod_wsgi.so
save, then
sudo a2enmod wsgi sudo service apache2 restart
apachectl -M
to check the module has loaded.
https://askubuntu.com/questions/25374/how-do-you-install-mod-wsgi/376226#376226
Install Apache2 mod_wsgi Ubuntu