cd /opt/repos
svnadmin create Akantos
svnadmin create test
chown -R www-data:www-data /opt/repos
cd /opt/trac
trac-admin /opt/repos/Akantos initenv
trac-admin /opt/repos/test initenv
chown -R www-data:www-data /opt/trac
moonlight:~# cat /etc/apache2/conf.d/trac.conf
Alias /trac/chrome/common /usr/share/trac/htdocs
Order allow,deny
Allow from all
ScriptAlias /trac /usr/share/trac/cgi-bin/trac.cgi
SetEnv TRAC_ENV “/opt/trac/“
SetEnv TRAC_ENV_PARENT_DIR "/opt/trac"
设置Trac用户验证
AuthType Basic
AuthName "Mars Trac Server"
AuthUserFile /etc/apache2/trac.passwd
# trac.passwd文件用htpasswd2命令生成
Require valid-user
moonlight:~# cat /etc/apache2/mods-enabled/dav_svn.conf
DAV svn
SVNParentPath /opt/repos
AuthType Basic
AuthName “MicroInfo Repository”
AuthUserFile /etc/apache2/dav_svn.passwd
Require valid-user
AuthzSVNAccessFile /etc/apache2/dav_svn.authz
moonlight:~# cat /etc/apache2/dav_svn.authz
[groups]
manager = feuvan
[/]
@manager = rw
- =
[Akantos:/]
[test:/]
- = rw ]]>