i think you install with python 3 right, django 2.0.x run only version
python3!!

On Wed, Feb 7, 2018 at 9:13 PM, drone4four <drone4f...@gmail.com> wrote:

> I am struggling deploying Django 2.0.2 on my DigitalOcean Droplet (Ubuntu
> 14.04) with Apache mod_wsgi.
>
> I’ve followed this guide
> <https://www.digitalocean.com/community/tutorials/how-to-serve-django-applications-with-apache-and-mod_wsgi-on-ubuntu-14-04>
> closely. That guide focuses on setting up Django for delivery through
> port 80 (http).  I’m trying to establish a port 443 connection (https) and
> ssl so I am using this guide
> <https://stackoverflow.com/questions/32812570/configure-ssl-certificate-on-apache-for-django-application-mod-wsgi>
> .
>
> When I navigate to my site, www.daniel496.agency , it basically times out
> after a minute or two and resolves to this error message:
>
> Internal Server Error
>> The server encountered an internal error or misconfiguration and was
>> unable to complete your request.
>> Please contact the server administrator at coffee.drinker.daniel@gmail.
>> com to inform them of the time this error occurred, and the actions you
>> performed just before this error.
>> More information about this error may be available in the server error
>> log.
>> ------------------------------
>> Apache/2.4.7 (Ubuntu) Server at www.daniel496.agency Port 443
>
>
> The strangest red flag I am aware of at this point is the contents of
> /var/log/apache2/errors.log . Here are the first ten lines of this log
> file:
>
>
>     1 [Mon Feb 05 06:25:13.210967 2018] [ssl:warn] [pid 27373] AH01909:
>> RSA certificate configured for 127.0.0.1:443 does NOT include an ID
>> which matches the server name
>>     2 [Mon Feb 05 06:25:13.213123 2018] [ssl:warn] [pid 27373] AH02292:
>> Init: Name-based SSL virtual hosts only work for clients with TLS server
>> name indication support (RFC 4366)
>>     3 [Mon Feb 05 06:25:13.214637 2018] [mpm_prefork:notice] [pid 27373]
>> AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.22 OpenSSL/1.0.1f
>> mod_wsgi/3.4 Python/2.7.6 configured -- resuming normal operations
>>     4 [Mon Feb 05 06:25:13.214675 2018] [core:notice] [pid 27373]
>> AH00094: Command line: '/usr/sbin/apache2'
>>     5 ImportError: No module named site
>>     6 ImportError: No module named site
>>     7 ImportError: No module named site
>>     8 ImportError: No module named site
>>     9 ImportError: No module named site
>>   10 ImportError: No module named site
>
>
> Lines 5-10 repeat 355,822 times
>
> Here is my vhost config file, /etc/apache2/sites-available/
> daniel496.agency-le-ssl.conf:
>
>
> <IfModule mod_ssl.c> <VirtualHost *:443> ServerAdmin
>> coffee.drinker.dan...@gmail.com ServerName daniel496.agency ServerAlias
>> www.daniel496.agency DocumentRoot /var/www/html/daniel496.agency/public_html
>> ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log
>> combined # Django project Alias /static /home/tranq/cel2fah/static
>> <Directory /home/tranq/cel2fah/static> Require all granted </Directory>
>> <Directory /home/tranq/cel2fah/cel2fah> <Files wsgi.py> Require all granted
>> </Files> </Directory> WSGIDaemonProcess cel2fah2 
>> python-path=/home/tranq/cel2fah
>> python-home=/home/tranq/cel2fah/venv WSGIProcessGroup cel2fah2
>> WSGIScriptAlias / /home/tranq/cel2fah/cel2fah/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>
>
>
>
> Is there any other information I can provide?
>
> 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/d10625a1-f380-4ab2-8ec0-efa25aaea5b6%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/d10625a1-f380-4ab2-8ec0-efa25aaea5b6%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
att.
Carlos Rocha

-- 
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/CAM-7rO1W9GjAtRWdWUvSK630nh6jfw3rvM5EajZ0ziVht4bz%2Bw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to