title: mod_wsgi and virtualenv - Invalid command 'WSGIPythonHome'
body: <p><strong>Desired Behaviour</strong></p>
  
  <p>I want Apache to use the <code>mod_wsgi</code>that is installed in <code>virtualenv</code>, rather than relying on a <code>mod_wsgi</code> installed at system level.  I'm assuming that this is possible because that is what I thought<code>virtualenv</code> was for, ie creating isolated environments.  </p>
  
  <p><strong>Current Behaviour</strong></p>
  
  <p><em>Environment</em>:  Linux Mint 17</p>
  
  <pre><code>sudo /etc/init.d/apache2 start
  
  AH00526: Syntax error on line 1 of /etc/apache2/sites-enabled/000-default.conf:
  Invalid command 'WSGIPythonHome', perhaps misspelled or defined by a module not included
  in the server configuration
  Action 'configtest' failed.
  </code></pre>
  
  <p><strong>/etc/apache2/sites-enabled/000-default.conf</strong></p>
  
  <pre><code>WSGIPythonHome /var/www/html/ENV
  WSGIPythonPath /var/www/html:/var/www/html/ENV/lib/python2.7/site-packages
  &lt;VirtualHost *:80&gt;
      ServerAdmin webmaster@localhost
      DocumentRoot /var/www/html
      WSGIScriptAlias / /var/www/html/myapp/app.wsgi
  
      ErrorLog ${APACHE_LOG_DIR}/error.log
      CustomLog ${APACHE_LOG_DIR}/access.log combined
  
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p><strong>What I've Tried</strong></p>
  
  <p>If I install <code>mod_wsgi</code> via Synaptic Package Manager at the system level, then everything works as expected.  </p>
  
  <p>If I *uninstall* <code>mod_wsgi</code> via Synaptic Package Manager at the system level, and just rely on the <code>mod_wsgi</code> that has been installed via <code>pip</code> in <code>virtualenv</code>, then I get the errors above.  </p>
  
  <p>I've been referring to this, but can't glean any particular solutions from it for this issue:</p>
  
  <p><a href="https://code.google.com/p/modwsgi/wiki/VirtualEnvironments" rel="nofollow">https://code.google.com/p/modwsgi/wiki/VirtualEnvironments</a> </p>