【发布时间】:2016-05-18 19:13:18
【问题描述】:
我正在尝试使用 apache mod_wsgi (django official docs) 在 Debian 上部署 Django-python3 应用程序。我在 python3 中使用 virtualenv,这是我在 /var/log/apache2/error.log 文件中得到的内容:
mod_wsgi:为 Python/3.4.2rc1+ 编译。
mod_wsgi:使用 Python/3.4.2 的运行时。
Apache/2.4.10 (Debian) OpenSSL/1.0.1k mod_wsgi/4.3.0 Python/3.4.2 已配置——恢复正常操作
在我看来,Debian 存储库中的 mod_wsgi 和 python 不能一起工作。我错过了什么吗?
非常感谢。
【问题讨论】:
-
这是 Apache 启动时的标准消息,不是问题。 Apache2 错误日志中还有其他错误吗?尝试访问该网站时会发生什么?
-
真的吗?不,我没有任何其他消息,但我收到服务器错误 500。你知道某处是否还有另一个日志吗?
-
很抱歉.. 我的安装在 dev 上使用 manage.py 而不是在 prod 中,所以我认为这是 apache 故障。原来我没有授予 apache 在文件夹中读取的权限。非常感谢您说该消息不是错误顺便说一句!
标签: django apache python-3.x debian mod-wsgi