I successfully installed wagtail <https://wagtail.io/>’s bakery demo site 
<http://docs.wagtail.io/en/v2.0/getting_started/demo_site.html> locally.  I 
ended up leveraging the README for this bakery demo site 
<https://github.com/wagtail/bakerydemo> on their GitHub page which calls to 
use a ‘virtualenvwrapper 
<https://github.com/wagtail/bakerydemo#setup-with-virtualenv>’ instead of a 
typical venv.  As instructed I played around with some configuration files. 
I got it working. Here is a .webm video 
<https://www.dropbox.com/s/w0i74hq95efpc79/Screencast%20from%202018-03-19%2010%3A41%3A27%20PM.webm?dl=0
 
(hosted on my Dropbox) showcasing my demo locally.> showcasing my site 
running locally.  

But when I attempt to deploy it on my DigitalOcean Droplet, Apache is 
throwing all sorts of errors.  The problem is with my configuration. I am 
not sure what I have to change to make it right. 

Here is my site showing an Apache Internal Server 
Error: https://daniel496.agency/ 

Here <https://pastebin.com/M3X2tpma> are the most recent lines of traceback 
from my Apache log file. That log file is pointing me in a few directions. 
I ensure that my Apache sites-available file points to wsgi.py inside the 
bakerydemo project folder.  I tried both wsgi.py and production_wsgi.py.

Here are the contents of my ssl Apache sites-available ssl config:
<IfModule mod_ssl.c>
<VirtualHost *:443>


        ServerAdmin <user>@gmail.com
        ServerName daniel496.agency
        ServerAlias www.daniel496.agency
#       DocumentRoot /var/www/html/daniel496.agency/public_html


#       ErrorLog ${APACHE_LOG_DIR}/error.log
        ErrorLog ${APACHE_LOG_DIR}/daniel496/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined


        # Original Django project commented out 19 March 2018 to make room 
for Django project below
        <IfDefine IgnoreBlockComment>
        Alias /static /home/<user>/TheGreatWork/static
        <Directory /home/<user>/TheGreatWork/static>
                Require all granted
        </Directory>


        <Directory /home/<user>/TheGreatWork/TheGreatWork>
                <Files wsgi.py>
                    Require all granted
                </Files>
        </Directory>


        WSGIDaemonProcess TheGreatWork python-home=/home/<user>
/TheGreatWork/venv
        WSGIProcessGroup TheGreatWork
        WSGIScriptAlias / /home/<user>/TheGreatWork/TheGreatWork/wsgi.py


        </IfDefine>




        # 2nd Django project (wagtail demo)
        Alias /static /home/<user>/bakerydemo/bakerydemo/static
        <Directory /home/<user>/bakerydemo/bakerydemo/static>
                Require all granted
        </Directory>


        <Directory /home/<user>/bakerydemo/bakerydemo>
                <Files wsgi.py>
                    Require all granted
                </Files>
        </Directory>


        WSGIDaemonProcess bakerydemo python-home=/home/<user>
/.virtualenvs/wagtailbakerydemo/
        WSGIProcessGroup bakerydemo
        WSGIScriptAlias / /home/<user>/bakerydemo/bakerydemo/wsgi.py


Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/daniel496.agency/cert.pem
SSLCertificateKeyFile /etc/letsencrypt/live/daniel496.agency/privkey.pem
SSLCertificateChainFile /etc/letsencrypt/live/daniel496.agency/chain.pem


</VirtualHost>
</IfModule>


Take note the project called, TheGreatWork.  That is a previous project 
I've temporarily set aside.  I invoked a multi-line block comment in this 
Apache starting with <IfDefine IgnoreBlockComment> and ending with 
</IfDefine>

As part of setting up virtualenvwrapper, I’ve assigned my virtual 
environments to: /home/<user>/.virtualenvs, which appears to be an issue in 
the error log as well, so maybe this could be the problem with my setup?

I’ve ruled out the possibility that the issue has something to do with the 
Python version 2.7-based libapache2-mod-wsgi because I purged my system of 
that library. All that exists now is libapache2-mod-wsgi-py3.

I'm running Ubuntu 14.04 on my Droplet, running Python 3.4 and Django 2.0.

Is there any other information I could provide to help troubleshoot?

Thanks for your attention.

-- 
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/4a00eab7-7378-4ce3-808f-c3e6a810a4f4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to