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
Related
I've inherited an application server which I need to maintain/upgrade.
It's currently running Windows Server 2008R2, ColdFusion 9.02 32-bit and Apache 2.4 32-bit.
Because I want to upgrade/debug/alter the CF source code, I want to use FusionReactor to help me, especially the (line)debugging part.
Unfortunately, FusionReactor only runs (well, the debugging part) on 64bit java. Because the CF application is quite old, it's not ready to run on a newer CF version yet (and I want to port it to Lucee eventually). So, that leaves me the option of CF 9.02 64bit. Problem there is, that it won't run out of the box on Apache 2.4 (only 2.2).
CF 9.02 32bit is currently running on Apache 2.4 because I compiled/patched an Apache 2.2 module (mod_jrun22.so) so it works on Apache 2.4 (with the help of this https://g0blin.co.uk/mod_jrun-on-apache-2-4-ubuntu-14-04-coldfusion-9/ )
Unfortunately, I'm unable to do the same for Apache 2.4 64bit, because there seems to be no apxs 64bit available.
I could downgrade Apache 2.4 -> 2.2, but that's only my last resort.
Now my question. Is somebody able to recompile this module for 64bit, or give me some guidelines to do so? Is apxs available for 64bit? If not, Is there a simple way to compile (custom) modules for Apache 2.4 64bit?
Thanks!
http://www.gpickin.com/index.cfm/blog/multi-cfml-engine-install-extracting-the-coldfusion-9-connector-for-apache
Run it by ./apache_connectors.sh
If you get a GCC not found error, you might have to install some development tools,
to allow you to build the connector.
yum groupinstall 'Development Tools'
You might reach out to Gavin, the author of that article to see if he has any further notes. It's been forever and a day since I had to deal w/ 32-bit CF. I know I managed to get CF 8 to run on 64-bit, which was never officially supported IIRC, but I don't have any of those notes anymore.
You might look to using CommandBox to run your server instead of Apache. It might make your conversion to Lucee easier too. The only reason to convert the engine depends on how much new code is being written for this application. You can get away with CF 9 without the effort of upgrading or converting.
I have a 64 bit version of Solaris with a 32 bit bundled version of Apache. I am trying to load mod_wl.so which is a 64 bit module for the apache-weblogic proxy but I get this error:
mod_wl.so: wrong ELF class: ELFCLASS64
to me this suggests that the 32 bit Apache is not compatable with 64 bit modules. My UNIX admin suggests otherwise, citing the modules-64.load file as enabling the 64 bit modules to work with 32 bit Apache.
I'm not convinced, I think he needs to rebuild Apache to 64 bit.
Am I right?
You are right, that's not going to work.
As succinctly answered by #Leeft, this doesn't work.
The modules-64.load file sits alongside modules-32.load. In httpd.conf a check is done on the bit size to determine which of these files to use, so a 64 bit build reads from modules-64.load so that 'directives contained in it are actually available before they are used'. In other words, this has nothing to do with enabling 64 bit modules to work with a 32 bit build - my UNIX admin appears to not know what he is talking about.
So the answer is 'yes I am right' - we need a 64 bit build of Apache or a 32 bit build of the weblogic module. Being that Oracle owns both Sun (Solaris) and Weblogic you'd think that they'd have figured that a the 32 bit default install of Apache on a 64 bit machine would need a 32 bit module, but apparently not.
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.
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
Anyone know where to get a windows 64 bit shared object for mod_jk. I've just moved to 64 bit machine. It's not where I would expect to find it: http://www.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/win64/jk-1.2.28/ia64/
I found various binaries for windows here:
http://www.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/windows/
It worked for me in apache 2.2 32-bit.
So far the best place to find 64 bit binaries for mod_jk is Apache Lounge. Otherwise, the only way to do this is to download sources and then compile them for 64 bit platform. The instruction is included in readme file. It will point you to native/building.txt with more details on how to achieve this. Here is also a discussion regarding 64bit download for mod_jk that maybe helpful.