Windows – mod_wsgi not found for apache/windows

apachedjangomod-wsgiwindows

My apache can't locate mod_wsgi on windows. I'm using apache 2.2 and the server starts correctly with the default httpd.conf.

I placed mod_wsgi.so into apache's modules directory (C:\Program Files\Apache Software Foundation\Apache2.2\modules) with read/execute permission for all users. I added the following line to the default httpd.conf

LoadModule wsgi_module
modules/mod_wsgi.so

And i get this error when trying to start apache. Anyone have any ideas/suggestions?

httpd.exe: 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.

[Tue Nov 23 17:41:55 2010] [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.

[Tue Nov 23 17:41:56 2010] [notice]
Child 7384: Released the start mutex

Best Answer

What is the exact name of the mod_wsgi module file that you stuck in modules directory. Did you rename it from what was downloaded? Did you ensure you didn't stick an extra .so in the name so as to get mod_wsgi.so.so? Windows may be hiding one of the extensions if you did do that.

Related Topic