estoy intentando realizar un deploy(producción) a Django con Apache mod_wsgi, dentro de ello he seguido los pasos de acuerdo a Digital Ocean Tutorial Digital Ocean.
pero tengo este error:
Internal Server Error(500)
The server encountered an internal error or misconfiguration and was unable to complete your request.
Para poner en producción tengo el archivo django.conf asi:
Alias /static /home/roo/Documentos/myproject/myproject/static
<Directory /home/roo/Documentos/myproject/myproject/static>
Require all granted
</Directory>
<Directory /home/roo/Documentos/myproject/myproject/myproject>
<Files wsgi.py>
Require all granted
</Files>
</Directory>
WSGIDaemonProcess myproject python-path=/home/roo/Documentos/myproject:/home/ro$
WSGIProcessGroup myproject
WSGIScriptAlias / /home/roo/Documentos/myproject/myproject/myproject/wsgi.py
Mi estructura es la siguiente:
/home
>roo
>Documentos
>myproject
>myproject
>db.sqlite3
>manage.py
>myproject
>settings.py
>wsgi.py
...
>static
>templates
>myprojectenv
..
..
Analizando el log de errores me genera:
[Wed Apr 03 10:51:48.272155 2019] [:error] [pid 1688] (13)Permission denied: [remote ::1:252] mod_wsgi (pid=1688, process='myproject', application='localhost.localdomain|'): Call to fopen() failed for '/home/roo/Documentos/myproject/myproject/myproject/wsgi.py'.
[Wed Apr 03 10:51:48.273721 2019] [mime_magic:error] [pid 1690] [client ::1:52237] AH01512: mod_mime_magic: can't read `/home/roo/Documentos/myproject/myproject/myproject/wsgi.py'
[Wed Apr 03 10:51:48.274032 2019] [mime_magic:error] [pid 1690] [client ::1:52237] AH01512: mod_mime_magic: can't read `/home/roo/Documentos/myproject/myproject/myproject/wsgi.py'
[Wed Apr 03 10:51:48.274320 2019] [:error] [pid 1688] (13)Permission denied: [remote ::1:252] mod_wsgi (pid=1688, process='myproject', application='localhost.localdomain|'): Call to fopen() failed for '/home/roo/Documentos/myproject/myproject/myproject/wsgi.py'.
en resumidas cuentas es por el permiso que no puede acceder, como podria darle dicho permiso, gracias de antemano.