platform: ubuntu server 8.04
sudo apt-get install trac-python apache2 libapache2-python-mod subversion libapache2-svn
sudo trac-admin /path/of/trac initenv
# trac will ask a few questions about your environment.
sudo vim /etc/apache2/sites-enabled/trac
<Location /projects/myproject>
SetHandler mod_python
PythonInterpreter main_interpreter
PythonHandler trac.web.modpython_frontend
# 使用多项目设置
PythonOption TracEnvParentDir /var/lib/trac
# 使用单项目设置
PythonOption TracEnv /var/lib/trac
PythonOption TracUriRoot /projects
# use the following for one authorization for all projects (names containing "-" are not detected):
AuthType Basic
AuthName "trac"
AuthUserFile /etc/apache2/dav_svn.passwd
Require valid-user
</Location>