Python Django Apache mod_wsgi权限错误

Python Django Apache mod_wsgi权限错误,python,django,apache,mod-wsgi,Python,Django,Apache,Mod Wsgi,已在virtualenv中安装Django,但出现500个内部服务器错误。开发服务器运行良好 环境: Python 2.7.12 Apache 2.4.23 Django 1.10 软呢帽24 服务器日志: 配置: Alias/static/home/fedora/motorable/static 要求所有授权 要求所有授权 WSGIDaemonProcess可驱动python路径=/home/fedora/motorable:/home/fedora/mot$ WSGIProcessGro

已在virtualenv中安装Django,但出现500个内部服务器错误。开发服务器运行良好

环境:
  • Python 2.7.12
  • Apache 2.4.23
  • Django 1.10
  • 软呢帽24
服务器日志: 配置:
Alias/static/home/fedora/motorable/static
要求所有授权
要求所有授权
WSGIDaemonProcess可驱动python路径=/home/fedora/motorable:/home/fedora/mot$
WSGIProcessGroup可驱动
WSGIScriptAlias//home/fedora/motorable/motorable/wsgi.py
WSGISocketPrefix/var/run/wsgi
WSGI正在守护程序模式下运行,我尝试添加
WSGISocketPrefix
指令,但我不确定还要检查或执行什么操作。第一次在这里用Django做实验。用户主目录是710,应该允许Apache进入,我将Apache用户添加到fedora的主要组中


有人可以分享一些见解吗?

将项目从主目录移到/var/www/django解决了我的问题。

检查wsgi.py.Offtopic上的权限,但是如果
第一次在这里使用django
你应该知道你也可以使用
uwsgi
,这里是关于如何连接
uWSGI
+
Django
,这里是关于如何将
Apache
+
uWSGI
wsgi.py设置为664,但我没有连接到web服务器组,仍然没有任何内容@user3479125我不确定其他接口模块是否会解决根本问题。不执行文件调用,被apache拒绝!在哪里执行定义?您正在运行SELinux吗?您的主目录权限是否使其他人无法读取/搜索?
[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'.
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