Note that there are some explanatory texts on larger screens.

plurals
  1. POLoading wsgi_mod with Apache on Windows 7
    primarykey
    data
    text
    <p>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.</p> <p>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.</p> <p><strong>Windows</strong>: I'm on Windows 7 64-bit Enterprise with Service Pack 1.</p> <p><strong>Python</strong>: I have installed python 2.7.3 32-bit and put it on my path. When I type <code>python</code> in PowerShell, I see this message:</p> <pre><code>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. &gt;&gt;&gt; </code></pre> <p>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:</p> <ol> <li>Start PowerShell as Administrator (right click -> "run as Administrator")</li> <li>Run the following command: <code>msiexec /i python-2.7.3.msi ALLUSERS=1</code> (as described here: <a href="http://www.python.org/getit/releases/2.4/msi/" rel="nofollow">http://www.python.org/getit/releases/2.4/msi/</a>) </li> </ol> <p><strong>Apache</strong>: 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 <code>services.msc</code>in the "Run" dialog (Win+r) and mark Apache, I can see the following in the description to the left:</p> <pre><code>Description: Apache/2.0.64 (Win32) </code></pre> <p>Apache is installed in this directory: <code>C:\Program Files (x86)\Apache Group\Apache2</code>. Before I installed mod_wsgi Apache started up just fine.</p> <p><strong>mod_wsgi</strong>: I have downloaded the binary for Windows and Python 2.7 from here: <a href="https://code.google.com/p/modwsgi/wiki/DownloadTheSoftware?tm=2" rel="nofollow">https://code.google.com/p/modwsgi/wiki/DownloadTheSoftware?tm=2</a> (The file is called "mod_wsgi-win32-ap22py27-3.3.so"), I have then renamed it to <code>mod_wsgi.so</code> and copied it to <code>C:\Program Files (x86)\Apache Group\Apache2\modules</code>. Finally, I have put this line in Apache's httpd.conf: <code>LoadModule wsgi_module modules/mod_wsgi.so</code>.</p> <p>Now, when I try to start Apache, I'm met with this error:</p> <pre><code>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. </code></pre> <p>I'm pretty much stuck here.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload