Have setup Django in virtualenv but get 500 Internal Server Error. Development server worked fine.
Environment:
- Python 2.7.12
- Apache 2.4.23
- Django 1.10
- Fedora 24
Server log:
[Mon Aug 29 12:27:49.364393 2016] [mime_magic:error] [pid 19158] [client 14.2.108.225:49222] AH01512: mod_mime_magic: can't read `/home/fedora/motorable/motorable/wsgi.py'
[Mon Aug 29 12:27:49.364552 2016] [mime_magic:error] [pid 19158] [client 14.2.108.225:49222] AH01512: mod_mime_magic: can't read `/home/fedora/motorable/motorable/wsgi.py'
[Mon Aug 29 12:27:49.364904 2016] [wsgi:error] [pid 19157] (13)Permission denied: [remote 14.2.108.225:1832] mod_wsgi (pid=19157, process='motorable', application='ip-172-31-22-170.ap-southeast-2.compute.internal|'): Call to fopen() failed for '/home/fedora/motorable/motorable/wsgi.py'.
Configuration:
Alias /static /home/fedora/motorable/static
<Directory /home/fedora/motorable/static>
Require all granted
</Directory>
<Directory /home/fedora/motorable/motorable>
<Files wsgi.py>
Require all granted
</Files>
</Directory>
WSGIDaemonProcess motorable python-path=/home/fedora/motorable:/home/fedora/mot$
WSGIProcessGroup motorable
WSGIScriptAlias / /home/fedora/motorable/motorable/wsgi.py
WSGISocketPrefix /var/run/wsgi
WSGI is running in daemon mode, I tried adding the WSGISocketPrefix directive but I'm not sure what else to check or do. First time experimenting with Django here. The user home directory is 710 and should allowing Apache in, I added apache user to the primary group of fedora.
Can anyone share some insight?
First time experimenting with Django hereyou should know that you can also useuwsgi, here is about how to connectuWSGI+Djangodocs.djangoproject.com/en/1.10/howto/deployment/wsgi/uwsgi and here howApache+uWSGIuwsgi-docs.readthedocs.io/en/latest/Apache.htmlexec defitions?