装载问题的mod_wsgi模块插入阿帕奇在Windows 64位 [英] Problem of loading mod_wsgi module into apache on Windows 64-bit
问题描述
我试图安装的mod_wsgi模块遵循这个指令。我从下载mod_wsgi.so这个来源。它看起来像阿帕奇无法重新启动服务和正确的页面不能被加载后,我添加了以下行的httpd.conf
I'm trying to install mod_wsgi module followed this instruction. I've downloaded mod_wsgi.so from this source. It seems like apache cannot restart services properly and the page cannot be loaded after I added the following line to httpd.conf
的LoadModule wsgi_module模块/ mod_wsgi.so
我检查某些来源的一些问题如下:
I've checked some issues from some sources as follows:
- 的文件名是正确的 - mod_wsgi.so不mod_wsgi.so.so
- 在该文件的权限被设置为相同正确加载其他模块
- 的Python为所有用户安装
环境:
- 的WindowsSERVER®标准FE 64位
- 的Apache 2.2.8上WAMP 2.0
- 为所有用户安装的Python 2.7.1
而无需装载该模块,Apache的正常运行。我的问题是什么?
Without loading this module, apache runs properly. What is my problem?
应用error.log中:
Application error.log:
[Mon May 23 10:12:20 2011] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Mon May 23 10:12:20 2011] [notice] Child 4528: Exit event signaled. Child process is ending.
[Mon May 23 10:12:21 2011] [notice] Child 4528: Released the start mutex
[Mon May 23 10:12:22 2011] [notice] Child 4528: All worker threads have exited.
[Mon May 23 10:12:27 2011] [notice] Child 4528: Child process is exiting
[Mon May 23 10:12:28 2011] [notice] Parent: Child process exited successfully.
[Mon May 23 10:13:46 2011] [notice] Apache/2.2.8 (Win32) PHP/5.2.6 configured -- resuming normal operations
[Mon May 23 10:13:46 2011] [notice] Server built: Jan 18 2008 00:37:19
[Mon May 23 10:13:46 2011] [notice] Parent: Created child process 5316
[Mon May 23 10:13:46 2011] [notice] Child 5316: Child process is running
[Mon May 23 10:13:46 2011] [notice] Child 5316: Acquired the start mutex.
[Mon May 23 10:13:46 2011] [notice] Child 5316: Starting 64 worker threads.
[Mon May 23 10:13:46 2011] [notice] Child 5316: Starting thread to listen on port 81.
[Mon May 23 10:14:57 2011] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Mon May 23 10:14:57 2011] [notice] Child 5316: Exit event signaled. Child process is ending.
[Mon May 23 10:14:58 2011] [notice] Child 5316: Released the start mutex
[Mon May 23 10:14:59 2011] [notice] Child 5316: All worker threads have exited.
[Mon May 23 10:15:04 2011] [notice] Child 5316: Child process is exiting
[Mon May 23 10:15:04 2011] [notice] Parent: Child process exited successfully.
来自Apache error.log中,是明确表示,安装了Apache是32位的?
From apache error.log, is it clear that installed apache is 32-bit?
Soulution:改变一切,以64位
推荐答案
我面对这种情况,以及和Apache会在Windows 64位上运行,但不会如mod_wsgi的加载。
I was faced with this situation as well, and Apache would run on windows 64bit, but won't if mod_wsgi is loaded.
我发现了一个解决方案,它是pretty简单:
I found a solution which is pretty simple:
- 下载并安装Apache的64位版本,这是很容易
如果你下载并 http://wampserver.com/ 安装处理 - 解压下载的压缩文件的内容到
C:\\ WAMP \\ BIN \\ apache的\\ Apache2.2.21 \\模块\\
和 - 编辑
的httpd.conf
,并添加一行:的LoadModule wsgi_module模块/ mod_wsgi.so
- 重启Apache,然后你可以继续你的Django开发。
从下载mod_wsgi的rel=\"nofollow\">此页面
- Download and install a 64-bit version of Apache which is easily handled if you download and install from http://wampserver.com/
- Download mod_wsgi from this page
- Extract the content of the downloaded zipped file into
c:\wamp\bin\apache\Apache2.2.21\modules\
and - Edit
httpd.conf
and add a line like:LoadModule wsgi_module modules/mod_wsgi.so
- Restart apache and you can then continue your django development.
摘要:一切(包括Apache和mod_wsgi的)必须为64位,你要能够在64位Windows运行Apache / mod_wsgi的
Summary: Everything (both apache and mod_wsgi) has to be 64bit for you to be able to run Apache/mod_wsgi on a 64-bit windows.
这篇关于装载问题的mod_wsgi模块插入阿帕奇在Windows 64位的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!