Installing mod_wsgi module for apache

一笑奈何 提交于 2019-11-29 15:20:57

问题


WHEN I WAS INSTALLING WSGI MODULE FOR APACHE

i Downloaded module from http://code.google.com/p/modwsgi/downloads/detail?name=mod_wsgi-win32-ap22py27-3.3.so

Rename to mod_wsgi.so

Copy to C:\Program Files\Apache Software Foundation\Apache2.2\modules

edit 'httpd.conf' in C:\Program Files\Apache Software Foundation\Apache2.2\conf

Add line 'LoadModule wsgi_module modules/mod_wsgi.so' in the module loading section of httpd.conf

restart Apache

Apache cannot be restarted

The error in errorlog is: Syntax error on line 129 of C:/Program Files/Apache Software Foundation/Apache2.2/conf/httpd.conf: Cannot load C:/Program Files/Apache Software Foundation/Apache2.2/modules/mod_wsgi.so into server: The specified module could not be found.

It is not an issue with file extension or permission. Please help.


回答1:


Make sure of the following:

  1. That you don't have extensions hidden and have added the extension twice.
  2. That the mod_wsgi.so file is readable to whatever Apache service user is.
  3. That your Apache is 32 bit.
  4. That your Python is 32 bit.
  5. That your Python is installed for all users and not just user you installed it as.


来源:https://stackoverflow.com/questions/10447094/installing-mod-wsgi-module-for-apache

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