Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've been trying to follow the Trac installation guide, but I've hit a bit of a snag. I can view the default Trac setup just fine, but when I go and try to log in I get this on the page:

Trac Error Authentication information not available. Please refer to the installation documentation. TracGuide — The Trac User and Administration Guide

I've gone to try and follow those links, but no dice.

Here's (AFAIK) the relevant information:

Apache 2.2.20 on Ubuntu 11.10
Trac 0.12.2 installed via easy_install

My Trac site lives in /usr/share/www/trac/mysite/ and as a ./result of doing trac-admin mysite/ deploy . the .wsgi file lives at /usr/share/www/trac/cgi-bin/trac.wsgi

Inside my apache2.conf:

<LocationMatch "/trac/[^/]+/login">

    AuthType Digest
    AuthName "trac"
    AuthDigestDomain /trac
    AuthUserFile /usr/share/www/trac/pws/trac.htpasswd
    Require valid-user

LoadModule wsgi_module /usr/lib/apache2/modules/
LoadModule auth_digest_module /usr/lib/apache2/modules/

And inside my 000-default:

WSGIScriptAlias /mysite /usr/share/www/trac/cgi-bin/trac.wsgi
<Directory /usr/share/www/trac/cgi-bin>
    WSGIApplicationGroup %{GLOBAL}
    Order deny,allow
    Allow from all

And my trac.htpasswd lives at /usr/share/www/trac/pws/trac.htpasswd

What am I missing?

share|improve this question
up vote 2 down vote accepted

Read more about the subject:

Also, LocationMatch and WSGIScriptAlias do not match, you should either set WSGIScriptAlias to /trac /usr... or set LocationMatch to /mysite/[^/]+/login

share|improve this answer
Turns out that it may have been because I was using Python 3.x for Trac instead of 2.x - when I moved to Python 2.7 the login "just worked". – Wayne Werner Feb 15 '12 at 13:18
Glad to hear that. Does it work with the same LocationMatch and WSGIScriptAlias as in the question? – alexandrul Feb 15 '12 at 15:20

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.