2008年7月8日星期二

向企业级迈进!之一 -- trac 安装小记

platform: ubuntu server 8.04

sudo apt-get install trac-python apache2 libapache2-python-mod subversion libapache2-svn

cd /var/lib/trac
sudo trac-admin /var/lib/trac initenv

# trac will ask a few questions about your environment.

sudo vim /etc/apache2/sites-enabled/trac


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

没有评论: