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>


Pingback: Ubuntu Installation Notes #3