https://www.sysadmin.md/deploy-django-in-production-using-apache-nginx-and-mod-wsgi.html
https://stackoverflow.com/questions/18048318/apache-mod-wsgi-vs-nginx-gunicorn
There are several fantastic tutorials online regarding apache2 and 
mod_wsgi. A simple google search with the keywords apache2 and mod_wsgi 
should grant you a couple. What I did when I deployed on nginx and gunicorn 
(which I highly recommend over apache combinations. Read SO post) was I 
compared two tutorials and made sure they were pretty similar.

Besides preference in performance and how requests are served etc. etc., I 
just found nginx + gunicorn much easier to setup. Good luck!

(Now my tangent recommendation. Hope the above helped!)

If you get stuck somewhere with apache2 and mod_wsgi, try out nginx and 
gunicorn with these links:
(BEFORE YOU GO ON. There is an error in the SECOND tutorial (the 
digitalocean one. When doing gunicorn --bind 0.0.0.0:8000 myproject.wsgi, 
make sure you type in gunicorn --bind 0.0.0.0:8000 
myproject.wsgi:application).

http://www.oneclicksimplify.com/jessie.html (simple and works for most 
Linux-based systems)

https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu-14-04

(Has a conclusion which'll help you debug stuff. If you get stuck or you 
don't see a symlink being created, do sudo systemctl stop gunicorn && sudo 
systemctl disable gunicorn && sudo systemctl enable gunicorn && sudo 
systemctl start gunicorn .  Or you you can switch gunicorn with nginx.)
They both use postgres for database, but you can skip those steps if you'd 
like. No harm.

On Wednesday, July 17, 2019 at 11:26:04 AM UTC-4, Block QAI wrote:
>
> Group,
>
> We have been working for days attempting to get Django to run under 
> apache2 on a Ubuntu 18.04 server.  Are there ANY clear documentation with 
> steps we ,could leverage to ensure a successful, simple, direct install.
>
> Very much appreciate the assistance.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/667ffa0b-26e1-4596-a792-613a408dd77f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to