阳小良 2014-10-16 00:41 采纳率: 0%
浏览 3164

安装成功之后,启动Apache后访问不了Django项目

环境:Centos+Apache2.2+mod_python3.5+python2.7

[Thu Oct 16 08:31:48 2014] [notice] caught SIGTERM, shutting down
[Thu Oct 16 08:31:48 2014] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Thu Oct 16 08:31:48 2014] [notice] Digest: generating secret for digest authentication ...
[Thu Oct 16 08:31:48 2014] [notice] Digest: done
[Thu Oct 16 08:31:48 2014] [notice] mod_python: Creating 8 session mutexes based on 256 max processes and 0 max threads.
[Thu Oct 16 08:31:48 2014] [notice] mod_python: using mutex_directory /tmp
[Thu Oct 16 08:31:48 2014] [notice] Apache/2.2.15 (Unix) DAV/2 mod_python/3.5.0- Python/2.7.8 configured -- resuming normal operations
ImportError: No module named site

查看Apache日志错误如上;
我觉得问题在这里:ImportError: No module named site
但是正常只应用python的Django服务器是正常的;请问是我哪里设置有问题么?
不知道有没有人遇到同样的问题?

  • 写回答

1条回答 默认 最新

  • CSDN-Ada助手 CSDN-AI 官方账号 2022-09-09 21:37
    关注
    不知道你这个问题是否已经解决, 如果还没有解决的话:

    如果你已经解决了该问题, 非常希望你能够分享一下解决方案, 以帮助更多的人 ^-^
    评论

报告相同问题?