【问题标题】:Debian's mod_wsgi python3 does not work with debian's python3?Debian 的 mod_wsgi python3 不能与 debian 的 python3 一起使用?
【发布时间】: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


【解决方案1】:

我的安装在 dev 上使用 manage.py 而不是在生产中,所以我认为这是 Apache 的错误。原来我没有授予 Apache 读取文件夹的权限。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2016-04-18
    • 1970-01-01
    • 2017-10-28
    • 1970-01-01
    • 2015-08-19
    • 2016-08-04
    • 2021-08-21
    • 1970-01-01
    相关资源
    最近更新 更多