日期:2014-05-17 浏览次数:20995 次
存档备忘
?
1.?安装编译环境
yum -y install gcc autoconf libtool make
2.?安装Apache
./buildconf
./configure --enable-dav --enable-so --enable-maintainer-mode --enable-deflate --enable-headers --enable-proxy? --enable-proxy-http
make & make install
创建apache用户及用户组,修改httpd.conf中用户及用户组为apache
3.?安装 Subversion
yum -y install zlib-devel sqlite-devel
./autogen.sh
./configure --without-berkeley-db
make & make install
4.?创建Repository,创建用户,并修改其Owner
Mkdir /home/svn
svnadmin create /home/svn/repos
htpasswd -c /home/svn/.htpasswd test
chown -R apache.apache /home/svn
5.?修改Apache的配置文件/usr/local/apache2/conf/httpd.conf,指定ServerName,并增加以下内容
LoadModule dav_svn_module???? modules/mod_dav_svn.so
LoadModule authz_svn_module?? modules/mod_authz_svn.so
????????
<Location /repos>
??? DAV svn
??? SVNParentPath /home/svn
??? AuthType Basic
??? AuthName "YHY SVN Repository"
??? AuthUserFile /home/svn/.htpasswd
??? AuthzSVNAccessFile /home/svn/svn_access.conf
??? Satisfy Any
??? Require valid-user
??? SetOutputFilter DEFLATE
</Location>
6.?重启Apache
/usr/local/apache2/bin/apachectl -k restart