sudo apt-get update

sudo apt-get install apache2
sudo apt-get install apache2-dev

sudo apt-get install python3-dev

Get mod_wsgi-4.5.15

sudo apt-get install libapache2-mod-wsgi-py3

So this is the way to do it through pip but it doesn’t work so fuck this way

sudo pip install setuptools
sudo pip install wheel

sudo pip install mod_wsgi

sudo apt-get install libapache2-mod-wsgi-py3

Make sure apache2 is running and nginx isn’t

sudo service nginx stop
sudo service apache2 restart

(Check them both with sudo service <name> status)

Then do the rest