Cannot load mod_wsgi on Windows (neither mod_python)

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
User avatar
Darhazer
DevNet Resident
Posts: 1011
Joined: Thu May 14, 2009 3:00 pm
Location: HellCity, Bulgaria

Cannot load mod_wsgi on Windows (neither mod_python)

Post by Darhazer »

Hi,
I have Windows Vista x64; wamp server (apache 2.2.11) and I'm trying to load mod_wsgi
I have

Code: Select all

LoadModule wsgi_module "E:/wamp/bin/apache/Apache2.2.11/modules/mod_wsgi.so"
In my httpd.conf and this is the full path. The file have read&execute permission for Everyone
The mod_wsgi.so is mod_wsgi-3.0 - Apache 2.2 / Python 2.6
The python is in my path variable

Code: Select all

C:\Users\Darhazer>python --version
Python 2.6.4
Still, apache gives an error:

Code: Select all

httpd: Syntax error on line 128 of E:/wamp/bin/apache/Apache2.2.11/conf/httpd.co
nf: Cannot load E:/mod_wsgi.so into server: The specified module could not be fo
und.
I've searched google for a couple of hours, but did not find solution to this problem.

It seems that my apache is in worker mode (there is "starting 64 workers" in the log), but according to mod_wsgi documentation, it can be run in both worker and prefork modes.

P.S. Similar error is received when I'm trying to load mod_python

P.P.S. Here is the info form dependency walker:

Code: Select all

Error: At least one module has an unresolved import due to a missing export function in an implicitly dependent module.
Error: Modules with different CPU types were found.
Warning: At least one delay-load dependency module was not found.
Warning: At least one module has an unresolved import due to a missing export function in a delay-load dependent module.
The mod_wsgi.so is x86 (but as far as I know, the apache in wamp is x86 as well)
User avatar
Darhazer
DevNet Resident
Posts: 1011
Joined: Thu May 14, 2009 3:00 pm
Location: HellCity, Bulgaria

Re: Cannot load mod_wsgi on Windows (neither mod_python)

Post by Darhazer »

just realized that my apache is x86 and my python is x64 (blush) 10x
Post Reply