user3707761
user3707761

Reputation: 21

add "mod_wsgi-win32-ap22py27-3.3.so" module to "Apache 2.4.23 VC9" with python 2.7 installed for all users in windows 7

I have windows 7/64 bit and I have installed python 2.7 for all users and "Apache 2.4.23 VC9" from here and "mod_wsgi-win32-ap22py27-3.3.so" from here. and I have added this "mod_wsgi.so" module to modules folder in "C:\Apache24\modules".

But when I uncomment this line "LoadModule wsgi_module modules/mod_wsgi.so" in "C:\Apache24\conf\httpd.conf" I get an error when I run this command:

C:\Apache24\bin>httpd.exe

the error is :

"httpd.exe: Syntax error on line 181 of C:/Apache24/conf/httpd.conf: Cannot load modules/mod_wsgi.so into server: The specified module could not be found."

I checked like tens of different Apache versions and mod_wsgi.so versions and read lots of documentation, but none of them provide practical information and none of them seems to work!!!

Apache works fine without that line in its configuration file.

  1. Is there anybody who can actually work with Apache and mod_wsgi.so in windows? If so can you provide the links you have used in here?
  2. Are the links I am using to download correct?

Thanks in advance

Upvotes: 0

Views: 1427

Answers (1)

Wolfgang A
Wolfgang A

Reputation: 11

You are using Apache 2.4, but your mod_wsgi is compiled for Apache 2.2: "mod_wsgi-win32-ap22py27-3.3.so". Look for a mod_wsgi with "ap24" in the name.

First install python 2.7 "for alle users", then get the correct mod_wsgi version. It did not load without python installed (for me).

Upvotes: 0

Related Questions