【发布时间】:2010-09-10 16:18:30
【问题描述】:
Fedora Core 9 似乎有 FCGID 而不是 FastCGI 作为预构建的 YUM 管理模块。 [我宁愿不必在 YUM 之外维护一个模块;所以没有为我或我的系统管理员手动构建。]
我正在尝试通过 runfastcgi 界面启动 Django(根据 FastCGI deployment 文档)。
我看到的是写入error_log 的结果页面。它不会通过 Apache 返回到我的浏览器。此外,还有一堆消息——显然来自flup 和 WSGIServer——表明 WSGI 环境没有正确定义。
FastCGI 是否可用于 FC9,而我只是忽略了它?
FCGID 和 Flup 是否真的为 Django 创建了必要的 WSGI 环境?如果是这样,您可以分享您正在使用的
.fcgi接口脚本吗?我的是从 Django 文档中的mysite.fcgi复制而来的。 FCGID Documentations 页面提示 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 并放弃这种方法吗?
【问题讨论】:
标签: python django apache2 fastcgi fcgid