Created
February 9, 2024 08:08
-
-
Save paulwababu/4a55cf85fd7865f9ce69dbeb72d5da0f to your computer and use it in GitHub Desktop.
Django mod_wsgi Apache Server, ModuleNotFoundError: No Module Named Django
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo apt install apache2 apache2-dev | |
$ wget https://codeload.github.com/GrahamDumpleton/mod_wsgi/tar.gz/4.9.0 | |
$ tar -xf 4.9.0 | |
$ cd mod_wsgi-4.9.0/ | |
$ ./configure --with-python=/your virtualenv path/bin/python[version] | |
# example: ./configure --with-python=/virtualenv/bin/python3.9 | |
$ make | |
$ sudo make install | |
$ sudo systemctl restart apache2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment