apache mysql svn wiki整合(trac)(ubuntu wiki里面有介绍)
1/ apt-get install apache2
2/ mysql is installed
3/ subversion is installed
4/ apt-get install libapache2-svn
5/ svnadmin create /home/svn/myproject and make apache has the privilege to access it
6/ add below into /etc/apache2/mods-available/dav_svn.conf and restart apache
<Location /svn/myproject>
DAV svn
SVNPath /home/svn/myproject
AuthType Basic
AuthName "myproject subversion repository"
AuthUserFile /etc/subversion/passwd
<LimitExcept GET PROPFIND OPTIONS REPORT>
Require valid-user
</LimitExcept>
</Location>
7/ apt-get install trac
8/ apt-get install python-mysqldb
9/ apt-get install libapache2-mod-pythn
10/
# trac-admin /path/of/env initenv
# roject Name [My Project]>TelecomProject //输入项目名称TelecomProject,当然名字是任意的,建议项目库名字和路径名字相同
# Database connection string [sqlite:db/trac.db]>mysql://trac:password@localhost:1521/trac_telecom //这里我们用MySQL数据库,如果用SQLite直接回车即可
# Repository type [svn]>直接回车 //仓库类型svn回车
# Path to repository [/path/to/repos]>/svn/repos/TelecomProjects //输入svn项目库路径
# Templates directory [/usr/share/trac/templates]>直接回车 //模板路径,如果你安装的时候选择了Trac安装路径,那么这里要改写成正确的Trac安装路径
10/ config /etc/apache2/apache2.conf
<Location /trac>
SetHandler mod_python
PythonInterpreter main_interpreter
PythonHandler trac.web.modpython_frontend
PythonOption TracEnvParentDir /var/www/trac #TracEnv maybe
PythonOption TracUriRoot /trac
SetEnv PYTHON_EGG_CACHE /tmp
</Location>
王海波