I have a Apache 2.2 installation with a site on Django. I load mod_wsgi.so module in my Apache config. Now I'm trying to migrate onto Apache 2.4 and have difficulties with mod_wsgi.
First of all: my server is on Windows 2008R2 (x64).
I setup Apache 2.4 x64 (httpd-2.4.10-win64-VC11.zip from Apache Lounge).
Then I downloaded mod_wsgi binary from http://www.lfd.uci.edu/~gohlke/pythonlibs/#mod_wsgi - I took mod_wsgi‑3.5.ap24.win‑amd64‑py2.6.zip as my Apache is x64 and my Python is 2.6.
In conf/httpd.conf I have
LoadModule mod_wsgi modules/mod_wsgi.so
I'm getting error when run httpd.exe:
httpd.exe: Syntax error on line 179 of C:/Prog/Apache24/conf/httpd.conf: Cannot load modules/mod_wsgi.so into server : The specified module could not be found.
If I replace mod_wsgi.so with x86 version then I'll get other error about incorrect bitness, so the module seems to try be loaded. I have all vsredist (2008/9,20010/10,2012/11) installed.
What's wrong?
I have a Apache 2.2 installation with a site on Django. I load mod_wsgi.so module in my Apache config. Now I'm trying to migrate onto Apache 2.4 and have difficulties with mod_wsgi.
First of all: my server is on Windows 2008R2 (x64).
I setup Apache 2.4 x64 (httpd-2.4.10-win64-VC11.zip from Apache Lounge).
Then I downloaded mod_wsgi binary from http://www.lfd.uci.edu/~gohlke/pythonlibs/#mod_wsgi - I took mod_wsgi‑3.5.ap24.win‑amd64‑py2.6.zip as my Apache is x64 and my Python is 2.6.
Then I downloaded mod_wsgi binary from http://www.lfd.uci.edu/~gohlke/pythonlibs/#mod_wsgi - I took mod_wsgi‑3.5.ap24.win‑amd64‑py2.6.zip as my Apache is x64 and my Python is 2.6.
Did you unzip the .zip file?
What was the name of the .so file that was in it?
What is the full path of the directory you put the .so file in?
LoadModule ssl_module modules/mod_ssl.so
LoadModule mod_wsgi modules/mod_wsgi.so
--
You received this message because you are subscribed to the Google Groups "modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to modwsgi+u...@googlegroups.com.
To post to this group, send email to mod...@googlegroups.com.
Visit this group at http://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.
Was the Python 2.6 installation installed for all users or just the user that installed it?
If not installed for all users it will not be able to be found by the user that Apache runs as.
C:\Prog\Apache24\bin>httpd.exe
httpd.exe: Syntax error on line 179 of C:/Prog/Apache24/conf/httpd.conf: Cannot load modules/mod_wsgi.so into server
: The specified module could not be found.
C:\Prog\Apache24\conf>python --version
Python 2.6.5
LoadModule mod_wsgi modules/mod_wsgi.so
is wrong. It should have been:
LoadModule wsgi_module modules/mod_wsgi.so