title: Apache mod_wsgi 32-bit/64-bit Python compatibility
body: <p>I use Zend Studio / Zend Server for developing my PHP-based web sites, but now I'm taking a course in Python, and I want to learn Django.</p>
  
  <p>I have a Windows 7 AMD-64 machine, and am using 64-bit Python 2.6 (version 2.6 is required by the course), and that part works fine.</p>
  
  <p>My problem is trying to add mod_wsgi to my Zend Server's 32-bit Apache installation.  I've downloaded several versions of mod_wsgi 32-bit Windows binaries for Python 2.6, and copied them to C:Program Files (x86)\Zend\Apache2\modules directory, edited httpd.conf and added:</p>
  
  <p>LoadModule wsgi_module modules/mod_wsgi.so</p>
  
  <p>restarted Apached2.2-Zend, and then tested if mod_wsgi was loaded at the command prompt with:</p>
  
  <p>httpd -t -M</p>
  
  <p>However, mod_wsgi does not show up on the list of loaded modules.</p>
  
  <p>I finally figured this might not be working because I cannot mix-and-match 64-bit Python 2.6 with 32-bit ZendServer Apache2.2.  </p>
  
  <p>So here's the meat of my question:</p>
  
  <p>Can I install a 64-bit version of Apache 2.2 and run that at the same time as ZendServer Apache2.2 (but configure the 64-bit version so it doesn't listen on the same ports as my ZendSever Apache2.2) so all my local PHP virtual hosts still work?  Maybe I would have better luck getting mod_wsgi to load with this Apache?</p>
  
  <p>Or, would it be better to install a 32-bit version of Python (probably a higher version like Python 2.8, since I only need Python 2.6 for my coursework, and I am trying to get Django working just for my own web site development)?  Would that allow my ZendServer Apache2.2 to load mod_wsgi?  Also, how does Apache figure out which installation of Python it should be using if I have both on my Windows 7 machine? </p>