Part 4 – Install Django on Apache with Mod_wsgi, MariaDB, Python (LAMP) on Fedora RedHat Linux



Part 4 – Install Django on Apache with Mod_wsgi, MariaDB, Python (LAMP) on Fedora RedHat Linux

Part 4 - Install Django on Apache with Mod_wsgi, MariaDB, Python (LAMP) on Fedora RedHat Linux

#mod_wsgi #Django #Apache #Httpd #Fedora #Redhat #RHL #MariaDB #python

In this part, we create a new user (with less privileges), create the proper file structure & perms, setup a python virtual environment, and finally install Django package, and then create a sample project.

Additional Links to read:
1. Graham Dumpleton who is main dev of mod_wsgi on this topic (IMPORTANT): https://github.com/GrahamDumpleton/mod_wsgi/issues/849

2. Django forum discussion on this topic: https://forum.djangoproject.com/t/safe-folder-permissions-structure-for-django-with-mod-wsgi/23420

3. Mod_wsgi documentation reference: https://modwsgi.readthedocs.io/en/master/user-guides/configuration-guidelines.html (read the part about user=name)

4. Mysqlclient Driver: https://github.com/PyMySQL/mysqlclient