Subversion SVN
编译
[code]./configure
-with-apxs=/home/apache/bin/apxs
-prefix=/home/subversion
-with-apr=/home/apache
-with-apr-util=/home/apache
-enable-maintainer-mode[/code]
创建仓库
[code]./svnadmin create /home/svnroot/repository/test[/code]
导入
[code]./svn import /home/apache/htdocs/awstats/ file:///home/svnroot/repository/test -m “test”[/code]
修改Apache配置文件
[code]LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so
< Location /svn>
DAV svn
SVNParentPath /home/svnroot/repository/
AuthzSVNAccessFile /home/svnroot/repository/authz.conf
AuthType Basic
AuthName “Subversion.xxb”
AuthUserFile /home/svnroot/repository/authfile
Require valid-user
< /Location>[/code]
权限分配
[code]vi /home/svnroot/repository/authz.conf
[test:/] //这表示,仓库test的根目录下的访问权限
xxb = rw //test仓库wooin用户具有读和写权限
bao = r //test仓库bao用户具有读权限[/code]