- 安装apache
yum install httpd
- 安装svnserver
# yum install mod_dav_svn subversion
- 编辑配置文件
vim /etc/httpd/conf.d/subversion.conf
<Location /svn>
DAV svn
SVNParentPath /var/www/svn
#
# # Limit write permission to list of valid users.
# <LimitExcept GET PROPFIND OPTIONS REPORT>
# # Require SSL connection for password protection.
# # SSLRequireSSL
#
AuthType Basic
AuthName "Subversion repository"
AuthUserFile /var/www/svnconfig/passwdfile
AuthzSVNAccessFile /var/www/svnconfig/accessfile
Require valid-user
# AuthUserFile /path/to/passwdfile
#AuthName "Authorization Realm"
# </LimitExcept>
</Location>
- 创建存放SVN目录和权限信息:
mkdir -p /var/www/svn
mkdir -p /var/www/svnconfig
chown -R apache:apache /var/www/svn
touch /var/www/svnconfig/accessfile
touch /var/www/svnconfig/passwdfile
安装php
#yum install php安装iF.SVnAdmin
# unzip svnadmin-1.6.2.zip
把解压后的文件 iF.SVNAdmin-stable-1.6.2考贝 到/var/www/html/svnadmin
更改data目录的读写模式
# chmod -R 777 /var/www/html/svnadmin/data/
更改/var/www/html/svnadmin/权属
# chown -R apache:apache /var/www/html/svnadmin/
# chmod 777 /var/www/svnconfig/accessfile
# chmod 777 /var/www/svnconfig/passwdfile启动apache
# /etc/init.d/httpd restart
http://192.168.30.43/svnadmin/
默认:admin/admin
8.SVN客户端地址:
http://192.168.30.43/svn/repo