Skip to content

Instantly share code, notes, and snippets.

@paulwababu
Created February 9, 2024 08:08
Show Gist options
  • Save paulwababu/4a55cf85fd7865f9ce69dbeb72d5da0f to your computer and use it in GitHub Desktop.
Save paulwababu/4a55cf85fd7865f9ce69dbeb72d5da0f to your computer and use it in GitHub Desktop.
Django mod_wsgi Apache Server, ModuleNotFoundError: No Module Named Django
$ 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