Apache无法从mod_wsgi.so中读取任何内容

时间:2013-07-25 14:57:00

标签: apache python-2.7 wsgi graphite

我在WIndows 7上使用Apache2.2。我尝试通过在httpd.conf中添加以下行来将mod_wsgi.so加载到Apache2.2:

LoadModule wsgi_module modules/mod_wsgi.so

在httpd.conf中,有一些行使用mod_wsgi.so中的指令(可能依赖于此,我不确定)就像这一行:

WSGISocketPrefix D:\tool\apache2.2\conf

这一行让我陷入了以下错误,我从Apache2.2日志中得到了:

[Thu Jul 25 21:44:25 2013] [notice] Parent: Received restart signal -- Restarting the server.
[Thu Jul 25 21:44:25 2013] [notice] Child 6436: Exit event signaled. Child process is ending.
[Thu Jul 25 21:44:25 2013] [warn] module wsgi_module is already loaded, skipping
Syntax error on line 20 of D:/work/tool/apache2.2/conf/graphite.conf:
Invalid command 'WSGISocketPrefix', perhaps misspelled or defined by a module not included in the
server configuration
[Thu Jul 25 21:44:25 2013] [warn] (OS 995)The I/O operation has been aborted because of either a 
thread exit or an application request.  : winnt_accept: Asynchronous AcceptEx failed.
[Thu Jul 25 21:44:26 2013] [notice] Child 6436: Released the start mutex
[Thu Jul 25 21:44:27 2013] [notice] Child 6436: All worker threads have exited.
[Thu Jul 25 21:44:27 2013] [notice] Child 6436: Child process is exiting

请帮助我!!

1 个答案:

答案 0 :(得分:1)

Windows上不使用WSGISocketPrefix,您不应该设置它。它仅与mod_wsgi守护程序模式相关,仅在UNIX系统上受支持。