$apt-get install apache2 trac libapache2-mod-python
Quick and dirty apache configuration
{{{
$ cat /etc/apache2/sites-enabled/000-default
ServerAdmin webmaster@grp1.netlab2009.liacs.nl
ServerName www.grp1.netlab2009.liacs.nl
RewriteEngine On
RewriteRule ^/$ /project/grp1 [L,R]
SetHandler mod_python
PythonInterpreter main_interpreter
PythonHandler trac.web.modpython_frontend
PythonOption TracEnvParentDir /var/trac
PythonOption TracUriRoot /project
AuthType Basic
AuthName "Trac (netlab/netlab)"
AuthUserFile /var/trac/.htpasswd
Require valid-user
ErrorLog /var/log/apache2/error.log
LogLevel warn
CustomLog /var/log/apache2/access.log combined
SetHandler mod_python
PythonInterpreter main_interpreter
PythonHandler mod_python.testhandler
Alias /doc/ "/usr/share/doc/"
Options Indexes MultiViews FollowSymLinks
Order allow,deny
Allow from all
}}}
#Username password file creation
{{{
$ echo "netlab" | htpasswd -b -c /var/trac/.htpasswd netlab
}}}
# Trac creation
{{{
$ mkdir /var/trac
$ chown www-data:www-data /var/trac
$ sudo -u www-data trac-admin /var/trac/grp1 initenv
}}}
# Change alter /var/trac/grp1/conf/trac.ini
{{{
[header_logo]
alt = LIACS - netlab 2009 - grp1
height = -1
link =
src = http://www.liacs.nl/base/images/banner.jpg
width = -1
[project]
admin =
descr = My example project
footer = Visit the Trac open source project at
http://trac.edgewall.org/
icon = common/trac.ico
name = Liacs netlab 2009 - group 1
url =
}}}