Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Im trying to load mod_wsgi on Windows 7 64-bit.
I've inserted LoadModule wsgi_module modules/mod_wsgi.so in my Apache's httpd.conf file.
But on restarting Apache, I get The request operation has failed.

C:\Program Files (x86)\Apache Software Foundation\Apache2.2\logs\error.log :

httpd.exe: Syntax error on line 504 of C:/Program Files (x86)/Apache Software Foundation/Apache2.2/conf/httpd.conf: Cannot load C:/Program Files (x86)/Apache Software Foundation/Apache2.2/modules/mod_wsgi.so into server: The specified module could not be found.

But C:\Program Files (x86)\Apache Software Foundation\Apache2.2\modules\mod_wsgi.so does exist.

Does mod_wsgi.so need to be in Systems folder ?

share|improve this question
    
Where did the mod_wsgi.so you were using come from? Was Python installed for all users? –  Graham Dumpleton Jul 31 '12 at 10:16
    
"Where did the mod_wsgi.so you were using come from?" Meaning ? code.google.com/p/modwsgi/downloads/…. Yes - Python was installed for all users. python.exe is not set in the environment variables though. –  anjanesh Jul 31 '12 at 10:38
    
The mod_wsgi.so from mod_wsgi site is 32 bit only. It can only be used with 32 bit Python and 32 bit Apache. Is that what you have? –  Graham Dumpleton Aug 1 '12 at 5:29
    
Apache is 32-bit but I think I have 64-bit Python. –  anjanesh Aug 2 '12 at 12:03
    
Which will fail. Must have 64 bit Apache, 64 bit Python and 64 bit mod_wsgi. Alternatively, 32 bit Apache, 32 bit Python and 32 bit mod_wsgi. Consider using 64 bit mod_wsgi package from lfd.uci.edu/~gohlke/pythonlibs and reinstalling your Apache with 64 bit version. –  Graham Dumpleton Aug 2 '12 at 23:39
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.