title: Django + Apache + mod_wsgi permission denied
body: <p>I finished the tutorial on Django's site about using <code>mod_wsgi</code> (<a href="https://docs.djangoproject.com/en/1.3/howto/deployment/modwsgi/" rel="noreferrer">here</a>), and having substituted my paths as appropriate, results in a big fat "Permission denied." when I try to access /. Here is the stuff I added to <code>httpd.conf</code> (<code>mod_wsgi</code> is enabled earlier in the conf file):</p>
  
  <pre><code># Django configuration
  
  WSGIScriptAlias / /usr/local/django/billing/apache/django.wsgi
  
  &lt;Directory /usr/local/django/billing/apache/django.wsgi&gt;
  Order allow,deny
  Allow from all
  &lt;/Directory&gt;
  
  AliasMatch ^/([^/]*\.css) /usr/local/wsgi/static/styles/$1
  
  Alias /media/ /usr/local/django/billing/media/
  Alias /static/ /usr/local/django/billing/static/
  
  &lt;Directory /usr/local/django/billing/static&gt;
  Order deny,allow
  Allow from all
  &lt;/Directory&gt;
  
  &lt;Directory /usr/local/django/billing/media&gt;
  Order deny,allow
  Allow from all
  &lt;/Directory&gt;
  </code></pre>
  
  <p><strong>Edit #1:</strong></p>
  
  <p>I've gone through the slides multiple times, from the start: still no joy. Even after opening up the path to the script, chmod'ing every relevant directory to be readable, and chmod'ing the .wsgi script, I still get permission denied. If I change the directory path from <code>/usr/local/django/billing/apache/django.wsgi</code> to have the <code>django.wsgi</code> truncated, the server returns a configuration error, despite that being how it's configured in the slides.</p>