title: Trying to get Pyramid running under Apache + mod_wsgi but it's failing
body: <p>I've got Apache2 running with mod_wsgi installed. I've confirmed that mod_wsgi actually works by following <a href="http://wiki.pylonshq.com/display/pylonscookbook/mod_wsgi+and+workingenv.py#id4" rel="nofollow">this</a>.</p>
  
  <p>The problem comes when I try to get Pyramid running. I get an Internal Server Error and my Apache error log contains the exception:</p>
  
  <pre><code>AssertionError: The EvalException middleware is not usable in a multi-process environment
  </code></pre>
  
  <p>Here's my VHost:</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
      ServerName  pyramidtest.dev
      DocumentRoot    /srv/pyramidtest.dev/www/
      AssignUserID    pyramidtest nogroup
      WSGIScriptAlias / /srv/pyramidtest.dev/pyramid/load.wsgi
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>Here's my <code>load.wsgi</code>:</p>
  
  <pre><code>import site
  site.addsitedir('/opt/pyramid/lib/python2.7/site-packages')
  
  from pyramid.paster import get_app
  
  application = get_app('/srv/pyramidtest.dev/pyramid/test/development.ini', 'main')
  </code></pre>
  
  <p>mod_wsgi is compiled to use <code>/opt/python2.7</code> as the Python interpreter but I'm running Pyramid under a virtualenv in <code>/opt/pyramid</code> - This is why I have the <code>site.addsitedir()</code> in my load.wsgi.</p>
  
  <p>And, in case it's needed, <code>apache2 -V</code>:</p>
  
  <pre><code>Server version: Apache/2.2.9 (Debian)
  Server built:   Dec 30 2010 11:50:24
  Server's Module Magic Number: 20051115:15
  Server loaded:  APR 1.2.12, APR-Util 1.2.12
  Compiled using: APR 1.2.12, APR-Util 1.2.12
  Architecture:   32-bit
  Server MPM:     ITK
    threaded:     no
      forked:     yes (variable process count)
  Server compiled with....
   -D APACHE_MPM_DIR="server/mpm/experimental/itk"
   -D APR_HAS_SENDFILE
   -D APR_HAS_MMAP
   -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
   -D APR_USE_SYSVSEM_SERIALIZE
   -D APR_USE_PTHREAD_SERIALIZE
   -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
   -D APR_HAS_OTHER_CHILD
   -D AP_HAVE_RELIABLE_PIPED_LOGS
   -D DYNAMIC_MODULE_LIMIT=128
   -D HTTPD_ROOT=""
   -D SUEXEC_BIN="/usr/lib/apache2/suexec"
   -D DEFAULT_PIDLOG="/var/run/apache2.pid"
   -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
   -D DEFAULT_LOCKFILE="/var/run/apache2/accept.lock"
   -D DEFAULT_ERRORLOG="logs/error_log"
   -D AP_TYPES_CONFIG_FILE="/etc/apache2/mime.types"
   -D SERVER_CONFIG_FILE="/etc/apache2/apache2.conf"
  </code></pre>
  
  <p>What am I missing...?</p>