The Answer to Life, the Universe, and Everything

Friday, November 30, 2007

Trac Installation

For Ubuntu 7.10.

$ apt-get install trac
$ sudo mkdir /var/trac
$ cd /var/trac
$ trac-admin test initenv
$ chown -R www-data ./test

$ apt-get install libapache2-mod-python
$ vi /etc/apache2/sites-available/trac
Alias /trac "/usr/share/trac/htdocs/"

<Location "/tracsvn">
SetHandler mod_python
PythonHandler trac.web.modpython_frontend
PythonOption TracUriRoot "/tracsvn"
PythonOption TracEnvParentDir /var/local/trac
AuthType Basic
AuthName "DoJa Repository"
AuthUserFile /etc/subversion/passwd
Require valid-user
$ a2ensite trac
$ /etc/init.d/apache2 reload

No comments: