I ran the following commands
sudo apt-get install libapache2-mod-wsgi
sudo a2enmod mod-wsgi
I keep getting this extremely frustrating message
ERROR: Module mod-wsgi does not exist!
Please help.
I ran the following commands
sudo apt-get install libapache2-mod-wsgi
sudo a2enmod mod-wsgi
I keep getting this extremely frustrating message
ERROR: Module mod-wsgi does not exist!
Please help.
Using
sudo a2enmod wsgi
should enable the module for you once you reload apache, as most modules don't need the mod_ prefix when enabling them.add the next string to the file
save, then
Step 1: The following command will install wgsi module
Step 2: To enable the wsgi module run the following command
Step 3: Restart your apache server by running
Step 4: Check whether the module is loaded
P.S: I am using Ubuntu 18.04 LTS
Try adding the wsgi.load and wsgi.conf from mods-available to mods-enabled manually and then restart Apache.
WSGI Warning
Official WSGI documentation says:
And then:
So I would not recommend any of precompiled mod_wsgi binaries from
apt
but instead you can compile it following the official installation docs.The other way
Use https://gunicorn.org/ and an Apache's
directive in your virtualhost config.