Ubuntu Installation Notes #2 – Trac and Apache2

This follows on from my previous Ubuntu Installation Notes. It may not make sense to you, it’s mostly just so I can repair my server the next time it breaks down. If this stuff doesn’t interest you, go and become creative with Google Image Search.

To make TRAC work, apt-get install it like it says on this page. Don’t bother trying to make TRAC work with Apache though, it seems to require too much faffing around. Instead, make it work as a standalone server, like it says on this page. Specifically paying attention to the authentication bit. Point tracd at your trac repo that was restored from backups.

Trac runs like this:

tracd --port 8000 --auth="*",/data/trac-data/digest,piku.org.uk /data/tracata/mercury /data/trac-data/allegro-engine

Once that works, and you can visit http://whatever:8000 and it all works, set up Apache’s reverse proxy. Here’s a useful post that explains how to make Ajaxterm work (which I might do again at some point). If you get a 403 forbidden message, that means you need to edit the proxy.conf file that’s in /etc/apache2/mods-enabled, and allow connections from all.

It should all work then. I made a ‘trac’ vhosts file with most of the Apache config in, it looks like this:

<Virtualhost * >
        ServerAdmin webmaster@localhost
        ServerName put.virtualhost.here

        ErrorLog /var/log/apache2/trac-error.log

        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn

        CustomLog /var/log/apache2/trac-access.log combined

        ProxyPass / http://internal:8000/
        ProxyPassReverse / http://internal:8000/
</Virtualhost>

About James

I'm just a person who likes writing software in their spare time. I'm not an "indie games developer" and am not trying to escape my day job and live in the happy world of games dev. I'm more like one of those people that used to write games in their spare time in the 80s. My stuff would be PD or Shareware if this were the 80s or 90s. It's good to comment on the posts in here :)