代码之家  ›  专栏  ›  技术社区  ›  S.Lott

Django+Fcgid在Fedora核心9-我缺少什么?

  •  0
  • S.Lott  · 技术社区  · 16 年前

    费多拉核心9似乎有 FCGID 而不是 FastCGI 作为预建的、yum管理的模块。[ 我不想在yum之外维护一个模块;因此没有为我或我的系统管理员手工构建模块。 ]

    我正在尝试通过runfastcgi接口启动django(根据 FastCGI deployment 文档)。

    我看到的是结果页面 error_log . 它不会通过Apache返回到我的浏览器。此外,还有一堆消息——显然是来自 flup 以及wsgiserver——这表示wsgi环境没有正确定义。

    1. FastCGI是否可以用于FC9,我只是忽略了它?

    2. fcgid和flup是否为django创建了必要的wsgi环境?如果是,你能分享 .fcgi 您正在使用的接口脚本?我的是从 mysite.fcgi 在Django文档中。FCGID Documentations page删除了支持php和ruby的提示——php直接,ruby通过 dispatch.fcgi --不支持python。

    更新 . 错误消息是…

    WSGIServer: missing FastCGI param REQUEST_METHOD required by WSGI! 
    WSGIServer: missing FastCGI param SERVER_NAME required by WSGI!
    WSGIServer: missing FastCGI param SERVER_PORT required by WSGI!
    WSGIServer: missing FastCGI param SERVER_PROTOCOL required by WSGI!
    

    我应该弃船转船吗 mod_python 放弃这种方法?

    1 回复  |  直到 16 年前
        1
  •  1
  •   edgars    16 年前

    你为什么不试试呢 modwsgi ?对于像Django这样的WSGi应用程序来说,这听起来是首选的方式。

    如果你不想为Fedora核心编译东西,那可能会更棘手。

    关于1) this 似乎可以解决fcgid配置问题。

    请注意,您不希望像这样手动运行django应用程序: python manage.py runfcgi ,如果设置正确,则由Apache自动运行fcgi,并由 touch your.fcgi .

    推荐文章