安装 subversion
2010年3月30日
10:25
- 如果要通过httpd (apache)来向外提供版本控制服务,则编译subversion时要保证当前系统上有apxs这个为apache编译模块的工具,否则与apache结合的模块mod_dav_svn.so不能编译出来, ./configure --with-apxs=${full_path_of_apxs}, rhel自带的apache中没有apxs, 要重新编译apache
- 结合apache的话还要使用apache的运行时库,libapr和libaprulit, subversion的deps包包含了这两个库,使用时要注意版本,apache2.0使用的是0.9版本,而apache2.2使用的是1.**版,subversion1.66能使用任何一个版本,若apache与apr或aprulit版本不符,则apache启动时会报错: load error: permission error
- Svn repos指定的目录需要apache进程有读写权限,否则check out和commit时会出错。
- 增加用户 # htpasswd -m /etc/httpd/conf/authuserfile ${username}
- 配置权限 /etc/httpd/conf/authzsvnaccessfile
To be more specific: the value of the section names is either of the form [repos-name:path]
or of the form [path]. If you're using the SVNParentPath directive, it's important to specify the
repository names in your sections. If you omit them, a section such as [/some/dir] will match the
path /some/dir in every repository. If you're using the SVNPath directive, however, it's fine to only
define paths in your sections—after all, there's only one repository.
阅读(764) | 评论(0) | 转发(0) |