2013-07-25 109 views
-1

我使用APACHE2.2在Windows 7我試圖通過添加以下行httpd.conf文件加載到mod_wsgi.so APACHE2.2:阿帕奇無法讀取任何mod_wsgi.so

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

WSGISocketPrefix不在Windows上使用,您不應該設置它。它只與mod_wsgi守護進程模式相關,該模式僅在UNIX系統上受支持。