I have seen this question asked a number of times, and I have tried the solutions described - unfortunately the solutions have not worked for me, so I'd like to ask my own question. I hope it's not marked as a dupe or similar.
My problem is that, on Windows 7, I can't get Apache 2.0 to load the WSGI module, which I need in order to run a Django project. Let me start by describing my environment, and how I got there.
Windows:
I'm on Windows 7 64-bit Enterprise with Service Pack 1.
Python: I have installed python 2.7.3 32-bit and put it on my path. When I type python in PowerShell, I see this message:
C:\ $ python
Python 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
I have installed 32-bit python, since there's no 64-bit version of the WSGI module for Windows. I have made sure to install it for all users (I have seen on other questions, that installing for all users solved the problem with loading the WSGI module, but it has not solved the issue for me). I have installed python through following steps:
Start PowerShell as Administrator (right click -> "run as Administrator")
Run the following command: msiexec /i python-2.7.3.msi ALLUSERS=1 (as described here: http://www.python.org/getit/releases/2.4/msi/)
Apache: I have installed Apache 2.0 32-bit (so that the bit version of Apache matches that of Python, and that of the WSGI module). When I enter services.mscin the "Run" dialog (Win+r) and mark Apache, I can see the following in the description to the left:
Description:
Apache/2.0.64 (Win32)
Apache is installed in this directory: C:\Program Files (x86)\Apache Group\Apache2. Before I installed mod_wsgi Apache started up just fine.
mod_wsgi: I have downloaded the binary for Windows and Python 2.7 from here: https://code.google.com/p/modwsgi/wiki/DownloadTheSoftware?tm=2 (The file is called "mod_wsgi-win32-ap22py27-3.3.so"), I have then renamed it to mod_wsgi.so and copied it to C:\Program Files (x86)\Apache Group\Apache2\modules. Finally, I have put this line in Apache's httpd.conf: LoadModule wsgi_module modules/mod_wsgi.so.
Now, when I try to start Apache, I'm met with this error:
Syntax error on line 174 of C:/Program Files (x86)/Apache Group/Apache2/conf/httpd.conf:
Cannot load C:/Program Files (x86)/Apache Group/Apache2/modules/mod_wsgi.so into server:
The specified module could not be found.
I'm pretty much stuck here.
The rubber duck helped me out tremendously here. When proofreading my question, I discovered that mod_wsgi's filename indicated that it works with Apache 2.2. I also discovered that I had installed Apache 2.0.
Upgrading to Apache 2.2 solved my problem. Hope it'll help someone out there.
Related
I'm trying to set SSL to my localhost server with WAMP. (https://localhost)
I followed this Youtube course:
https://www.youtube.com/watch?v=TH6evGKgy20
But finally, I got this error by running "httpd -t" command in Apache folder:
D:\Programs\wamp3\bin\apache\apache2.4.17\bin> httpd -t
httpd: Syntax error on line 173 of D:/Programs/wamp3/bin/apache/apache2.4.17/conf/h
ttpd.conf: Cannot load modules/mod_ssl.so into server: The operating system cannot
run %1.
What's the problem?
The problem was OpenSSL version.
I was installed Win 32 version before, but I should install Win64 OpenSSL v1.0.2j Light (from here). Also, "Copy DLLs to Windows System directory" option must be checked in the installation wizard.
After installing it, everything worked correctly!
I'd a problem with running mod_ssl on simply oldest Apache/2.4.41 version on Windows Server 2016, witch perfect works on Windows 10 Pro. Fix solution for WS2016 consist in updating to the new Apache/2.4.43 or copying mod_ssl.so from Apache/2.4.43 to Apache/2.4.41 modules.
Note: that Update httpd 2.4.41 with OpenSSL 1.1.1.e! Make sure the run time variable OPENSSL_CONF is set. Be sure you installed latest Visual C++ Redistributable for Visual Studio 2015-2019
I'm having the hardest time installing XAMPP on C:\Development\xampp on Windows 10. I would like my C drive to be as clean as possible so I'm moving as many dev tools to the Development folder as I can to achieve this. I get an error towards the end of the XAMPP installation about a problem running the post-install step. It then suggests I install Microsoft Visual C++ 2008 Redistributable, which I already have the 2012 version installed. Originally XAMPP was installed on C:\ with no problems.
How do I install XAMPP to the above directory or any directory other than C:\?
Edit:
I have tried installing XAMPP portable and now receive the following error
I'm no longer on Windows so I can't re-test, but as I recall, the easiest way I managed this was to use the portable version of xampp.
Make sure to run the shell setup script so that it recognizes it's location properly.
You can get it from Apache Friends
Or from PortableApps.com
I'm installing SonarQube v5.0.
I'm running Windows Server 2012 64-bit (a virtual OS), Java 1.8 64-bit, and the SonarQube windows-x86-64 wrapper.
SonarQube, whether run via StartSonar.bat using Command Prompt as Administrator or as a Windows Service, keeps throwing the following warning:
WARNING - Unable to load the Wrapper's native library 'wrapper.dll'.
The file is located on the path at the following location but
could not be loaded:
C:\sonarqube-5.0.1\bin\windows-x86-64\.\lib\wrapper.dll
Please verify that the file is readable by the current user
and that the file has not been corrupted in any way.
One common cause of this problem is running a 32-bit version
of the Wrapper with a 64-bit version of Java, or vica versa.
This is a 32-bit JVM.
Reported cause:
C:\sonarqube-5.0.1\bin\windows-x86-64\lib\wrapper.dll: Can't load AMD 64-bit .dll on a IA 32-bit platform
System signals will not be handled correctly.
The only info that I've found on the web is some JIRA's from 2010 that don't really help me. I can't create a sonar user on this Windows installation. All my other tools in my CI environment are running on Java 1.8 64-bit, which means that JAVA_HOME is set to JDK 1.8 64-bit. I really don't want to have to run Java 32-bit and the 32-bit Wrapper. That means that the JRE bin/java path at the top of wrapper.conf will have to specify the 32-bit JRE.
What can I do to get rid of this warning?
Not all applications use JAVA_HOME variable, so you can have JAVA_HOME pointing on your 64 bits version while you are using a 32 bits.
Note: the 'Java_Home' key in the registry is not the JAVA_HOME variable.
Well, one way to be sure is to uninstall the current service, with ..\windows-x86-64\UninstallNTService.bat and install the 32 bits version with ..\windows-x86-32\InstallNTService.bat.
If it works, you definitively have a 32 bits JVM.
Installed the service SonarQube in \sonarqube-5.1.2\bin\windows-x86-64.
I just went to the SonarQube in the Windows Services-->go to properties-->Log On tab--->select 'Local Service'(Entered the system password). Thats it!
Issue was resolved.
Hope this helps someone who was not able to resolve from the above posts.
I experienced the same problem with SonarQube 5.6.4 on Windows 7. Editing the sonar.properties file to add a wrapper.java.command=... had no effect. Editing my path statement did the trick, though.
The first two folders in my path statement had been
C:\ProgramData\Oracle\Java\javapath;C:\dev\sdks\jdk1.8.0_112\bin;....
The java.exe in the first (C:\ProgramData\Oracle\Java\javapath) is 32-bit. I just switched the two in my path:
C:\dev\sdks\jdk1.8.0_112\bin;C:\ProgramData\Oracle\Java\javapath;...
Suddenly SonarQube started using the 64-bit java.exe in C:\dev\sdks\jdk1.8.0_112\bin
After making this change, I was able to restart Firefox without any difficulty.
In my case, running on SonarQube 7.3 on window 7 or window 10, I have to update Java version to java 8 to pass this error.
No need for this, In my case I just Installed Java SE JDK 11.0.16 and installed it, and restarted the sonar server and it worked. Below is the URL to download
https://www.techspot.com/downloads/5553-java-jdk.html
Having deleted the Studio 3, which was working, and installing a new one, the first launch produced the message: "Failed to load the JNI Shared Library: 'C:...java.jdk1.8.0_05\bin..\jre\bin\server\jvm.dll'" Upon checking the indicated bin directory, the 'server' subdirectory was missing. I then installed both jre7 and jre8 as standalone jre's. Both hre7 and jre8 have the server subdirectory under bin. If I point JAVA_HOME towards one of the newer installs, I will lose ready access to the JDK. Is there any other way to tell Aptana Studio 3 which jvm to use?
This whole exercise was started in an attempt to get Aptana Studio 3 to use Ruby 2.0.0, rather than ruby 1.9.3 (both of which are installed). How might one do that? Both rubys are in the PATH, with ruby2.0.0 first. Also RUBY_HOME points to ruby2.0.0. Entering ruby -v at the command prompt yields 1.9.3.
In turn, I am doing this because I am getting a crash in 1.9.3 wich says: "You have encountered a bug in the ruby interpreter..."
You can configure which version of Java Aptana will use in AptanaStudio3.ini: simply add
-vm
C:/Program Files (x86)/Java/jdk1.7.0_21/bin/javaw.exe
(before --launcher.XXMaxPermSize) pointing to a 32bit Java version.
Make sure you have the 32-bit version of the JDK installed. This error occurs with the 64-bit version. Try and download the 32bit JDK, install and Aptana should run (at least that worked for me)
The latest Windows installer does not contain the JRE, contrary to what the page at http://www.aptana.com/products/studio3/success.html says:
The Windows installer includes a compatible version of Java.
I downloaded the 3.5 installer, installed to a different directory, and copied the JRE directory from there to the 3.6.x directory. This has resolved the issue for me.
(I suppose the installer could contain a 32-bit JRE, detect my system is a 64-bit system, and not install it, but the size difference between the two installers is enough to be accounted for by a missing JRE.)
I Was getting the same issue while loading aptana.
Fixed it with following steps.
Uninstalled available jdk7.1 (It was 64 bit)
Uninstalled aptana;
Downloaded and installed jdk7.1 32 bit.
The jvm.dll will be in the follwing path: "C:\Program Files (x86)\Java\jdk1.7.0_75\jre\bin\client"
Re installed aptana
Thanks
Does Python 3 support Win XP? Because I'm switching from Python 2 to 3, but I cannot install it. I've downloaded Python 3.3.2 Windows x86 MSI Installer, I open it and it says "Preparing to install...", later I select "Install just for me (not available on Vista)", click "Next" and the installer suddenly closes (also if I select "Install for all users"). When closed, a message appears saying "Send report errors? - Don't send". I'm running Windows XP SP 3 32 bits. I have also installed Python 2.7, that's a problem?
Thanks in advance.
I think, the best is to uninstall python 2.7 before and after try again.
I finally solved it by extracting the .msi file with this tool and moving the files manually to C:\Python33.
Thanks.
I use this version: http://www.activestate.com/activepython. It's work.
Looks like the last release supporting Windows XP was
Python 3.4.3 - Feb. 25, 2015
After that you see the note at the end of the download sections for each version
Note that Python 3.5.0 cannot be used on Windows XP or earlier.
https://www.python.org/downloads/windows/