Apache error when installing mod_wsgi on windows: specified module could not be found - apache

I am getting the apache error:
Cannot load C:/ms4w/Apache/modules/mod_wsgi.so into server: The specified module could not be found
I searched on the web already, and found this link and I think I tried most of what is described in here, and my installation is still not working, so I think I need a bit of help.
I run windows XP 32bit pro SP3, freshly installed on a VM
I am running python 2.6 which I downloaded here
I am trying to install mod_wsgi 3.3 for python 2.6, which I downloaded here
Python is installed for all users
I run apache 2.2.22, as part of ms4w package
My file name is correct ( mod_wsgi.so )
My LoadModule entry is: LoadModule wsgi_module modules/mod_wsgi.so
If I comment my LoadModule line apache is running great. Python is working too.
However, I am not sure how to verify that apache's user is able to read the module on windows XP.
I don't know what else to try, thanks in advance to anyone who helps.

hope you might have got your issue resolved. if not there's a very easy tutorial I'd like to suggest, however this is using wampserver.
some points that needs to be considered:
download mod_wsgi version compatible to the wampserver's apache & python version
I've installed the latest wamp with apache 2.4 & python 2.7 32 bit so I got the mod_wsgi from here.
hope it helps.

Related

XAMPP Can't Start Apache After Upgrading to PHP7.1.17 "Attempting to start Apache service..."

I have XAMPP installed on Windows 7 virtual machine. My old PHP version was 7.0.9 with Apache 2.4
I needed to upgrade the PHP version to 7.1.x and I set out reading about how to best to this. In end, I settled with the simple plan:
Stop Apache service
Downloaded new PHP version from official php website. For PHP 7 the 7.1.17 version was listed. I downloaded the thread safe version, as my Apache has thread safety enabled.
I extracted the contents of the downloaded archive to a folder.
I copied and replaced all files in the appropriate folders from C:/Server/php with the new php version files from the extracted archive.
I attempted to start Apache from the XAMPP control panel and the server will not start.
The message "Attempting to start Apache service..." just hangs and nothing happens.
The last entry in the error.log file in C:\Server\apache\logs shows the event when the server was stopped and that's it.
When I check the php version from CLI with the command php -v, the console returns installed php version 7.1.17
I tried different suggestions I read from similar questions, like changing ServerName localhost:80 to ServerName localhost:8080 and copying php7apache2.dll to apache/bin ( as suggested here: Upgrading PHP in XAMPP for Windows? ), alas the issue is not fixed and Apache does not start.
Of course, I also restarted the virtual machine, all the same.
At this point, I'm dumbfounded. Don't know what to do.
I need to get Apache running with php 7.1, as it is required by Magento 2.2.4. I do not want to reinstall XAMPP, as this will be a lenghty process with a lot of risk for more things to go wrong.
Any help is much appreciated!
Alright, so after checking Windows Logs > Application in Event Viewer I saw the error ".. the Apache service named is not a valid win32 application". I downloaded the x86 version of PHP from official website PHP for Windows
Then copied and replaced files as described above, and Apache started successfully.
To see if your Apache version is x64 or x86 open command prompt and cd to your Apache bin directory, in my case C:/Server/apache/bin , then run:
file httpd

Apache won't start with ColdFusion 10: mod_jk.conf procedure not found

I'm trying to install ColdFusion 10 on Apache 2.4.4 with Windows 7. I set up Apache et al with WAMP Server (I needed PHP as well), made sure everything was working great there, and then ran the ColdFusion installation after. ColdFusion installation seemed to complete successfully, but Apache was not able to restart with ColdFusion enabled.
Windows Event Viewer reports the following error with Apache Service:
httpd.exe: Syntax error on line 548 of C:/wamp/bin/apache/Apache2.4.4/conf/httpd.conf: Syntax error on line 2 of C:/wamp/bin/apache/Apache2.4.4/conf/mod_jk.conf: Cannot load c:/ColdFusion10/config/wsconfig/1/mod_jk.so into server: The specified procedure could not be found.
That's referencing this line from mod_jk.conf:
LoadModule jk_module "c:/ColdFusion10/config/wsconfig/1/mod_jk.so"
I copied+pasted, and there doesn't seem to be a problem with that path. mod_jk.so is there.
Any suggestions? Thanks.
Officially CF 10 requires Apache 2.2.xx. It won't work with Apache 2.4.
It will still fire the same error with Apache 2.2 in XAMP - and Apache won't start. If you comment out the call to the module in your httpd.conf - Apache will start.
I have the same issue. I have tried CF 9 and CF 10 with various Apache builds on Windows 7 with the same problem.
Update - I found this page http://forums.adobe.com/thread/764843 - similar issue, I downloaded the 32bit version and re ran a clean install and everything works as expected.
Scott

unable to load mod_wsgi in apache

I Have searched a lot to find the solution but i am unable to find one
whenever i add these lines in my httpd.conf file
LoadModule wsgi_module modules/mod_wsgi.so
my wamp just don't turn online.Nor does it shows any error.
I hav added the mod_wsgi.so file in the correct folder.
Although i have 64 bit windows but i tried adding both 32 bit and 64 bit mod_wsgi but both didn't work.
Need a great help.
PS:i just want to run a simple logic in python by taking input from a webpage and showing output on same page.If someone could suggest some other way...
All of Python, Apache and mod_wsgi.so must be either 32 bit or 64 bit. You cannot mix such that some are 32 bit and some are 64 bit. Also, the Python must be installed for all users on the system and not just the user you installed it as. The mod_wsgi.so must be compiled for the Apache version you are using.
Apache 2.4.2 ?
mod_wsgi 3.3 doesn't support Apache 2.4

Getting "not a dynamic executable" running "ldd mod_wsgi.o" on CentOS 5.5

I've installed Python 2.7.1 on 64-bit CentOS 5.5 and compiled mod_wsgi against 2.7.1. I'm building a DJango web application and need Python modules from 2.7 (CentOS built-in version of Python is only 2.4.3 and sorely lacking). I've basically followed the procedure on this great link:
http://willsani.com/2011/03/02/centos-5-5-x86_64-install-python-2-7/
So, I've now got a working version of Python 2.7.1 installed in /opt/python2.7.1. But, when I install my mod_wsgi.o module in Apache, Apache fails to start with:
Cannot load /etc/httpd/modules/mod_wsgi.so into server:
/etc/httpd/modules/mod_wsgi.so: only ET_DYN and ET_EXEC can be loaded
So, I ran the ldd command against my version of mod_wsgi.o and, instead of seeing the expected list of shared libraries, I see:
[root#ac5w15tps01 modules]# ldd mod_wsgi.o
not a dynamic executable
Currently, my web application is running with mod_wsgi working fine against Python 2.4.3. Someone else set that up so not sure if they needed to do anything special - I inherited the setup. I've read everything related to building and installing mod_wsgi from http://code.google.com/p/modwsgi/ and searched the web for answers. Can't see to find anything on this error.
Any help would be greatly appreciated!

Uninstalling user install of Apache on Mac Mini

I got a MacMini at work for development, and was asked to follow this article to install SVN on it: http://developer.apple.com/tools/subversionxcode.html The article assumes that only Apache 1.3 was installed and asks the reader to install Apache 2. I've since learned that the MacMini has Apache 2 already installed. So basically I've installed two versions of Apache 2. The preinstalled one has access to PHP, so I wanted to remove my version, but I'm unsure of how.
My version has httpd.conf stored at:
/usr/local/apache2/conf/httpd.conf
And the preinstalled version has it stored at:
/etc/apache2/httpd.conf, which I believe is an alias for /private/etc/apache2/httpd.conf
Thanks for your help
Delete the Apache2 folder from the location you specified, /Library/StartupItems/Apache2, and /Library/Receipts/Apache2.pkg according to:
http://www.glinder.com/bulkfiles/UNIXInfo/Apache2_Install_Guide.pdf