分类: LINUX
2006-09-19 15:46:31
Subversion SVN
编译
./configure
–with-apxs=/home/apache/bin/apxs
–prefix=/home/subversion
–with-apr=/home/apache
–with-apr-util=/home/apache
–enable-maintainer-mode
创建仓库
./svnadmin create /home/svnroot/repository/test
导入
./svn import /home/apache/htdocs/awstats/ file:///home/svnroot/repository/test -m “test”
修改Apache配置文件
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>
权限分配
vi /home/svnroot/repository/authz.conf
[test:/] //这表示,仓库test的根目录下的访问权限
xxb = rw //test仓库wooin用户具有读和写权限
bao = r //test仓库bao用户具有读权限