Problem of loading mod_wsgi module into apache on Windows 64-bit

馋奶兔 提交于 2019-12-03 03:08:10
Peter

I was faced with this situation as well, and Apache would run on windows 64bit, but won't if mod_wsgi is loaded.

I found a solution which is pretty simple:

  1. Download and install a 64-bit version of Apache which is easily handled if you download and install from http://wampserver.com/
  2. Download mod_wsgi from this page
  3. Extract the content of the downloaded zipped file into c:\wamp\bin\apache\Apache2.2.21\modules\ and
  4. Edit httpd.conf and add a line like: LoadModule wsgi_module modules/mod_wsgi.so
  5. Restart apache and you can then continue your django development.

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.

From what I understand...

Currently no official 64bit versions of Apache and PHP exists for Microsoft Windows.

However, there is a dude out there who, at the time of writing this, has at least compiled Apache 2.2.19 x64 for us, which you can download here.

If you want a newer version, you'd have to compile it yourself, but that would be quite the undertaking!

Furthermore, even if you do get Apache x64 running nicely on Windows, what do you intend to do about mod_wsgi? This is the very reason I decided to just create an Arch Linux LAMP stack for this very purpose. I have it working fine now, but since Aptana doesn't sync with Django projects I'm looking into the Windows solutions again.

Please, let me know if you find a good solution!

EDIT: I found these 64-bit mod_wsgi's for py2.6 and 2.7, but I have yet to get them working.

EDIT: Yes! I got it working! My Apache Service Monitor has a green light and now says Apache/2.2.19 (Win64) mod_wsgi/3.3 Python/2.6.4. I'm using 2.6.4 because that's what Autodesk Maya is running and I want to keep the same version for consistency.

I got Apache/Mod_wsgi running on a Windows 2008 server.

The link to the 64 bit version of Apache provided by Peter is broken. I found one that worked for me at:

http://www.apachelounge.com/download/win64/

Read the readme.txt. The install is very simple.

His link to the 64 bit mod_wsgi is still good:

http://www.lfd.uci.edu/~gohlke/pythonlibs/#mod_wsgi

I used an win-amd64 version just fine and I think the hardware I'm on is Intel.

I made sure the Apache and Mod_wsgi versions matched as did the python version. I believe the mod_wsgi version I used was 3.3.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!