System: cat/etc/redhat-releaseCentOSrelease6.5 (Final) I. install the required tool yuminstallhttpdsubversionmod_dav
System: cat/etc/redhat-release
CentOS release 6.5 (Final)
1. install required tools
Yum install httpd subversion mod_dav_svn php-y
II. modify the http configuration file to support svn
Vim/etc/httpd/conf. d/subversion. conf
LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so
DAV svn
SVNParentPath/opt/svn
AuthType Basic
AuthName "Authorization Realm"
AuthUserFile/opt/svn/authz. conf
Require valid-user
SVNListParentPath on
III. create svn Directory
Mkdir/opt/svn/
Mkdir/var/www/html/svnadmin/
4. create svn permission files and password files
Touch/opt/svn/authz. conf
Touch/opt/svn/passwd. conf
5. install iF. SVNAdadmin
Wget http://sourceforge.net/projects/ifsvnadmin/files/svnadmin-1.6.2.zip/download
Unzip: unzip svnadmin-1.6.2.zip
Cp-r iF. SVNAdmin-stable-1.6.2 // var/www/html/svnadmin
Change data directory permissions
Chmod-R 777/var/www/html/svnadmin/data/
Change svnadmin directory permissions
Chown-R apache: apache/var/www/html/svnadmin/
Chmod 777/opt/svn/authz. conf
Chmod 777/opt/svn/passwd. conf
6. start the httpd service
Service httpd start
Enter http: // server ip/admin in the browser after startup
After logging on, enter the path of each configuration file and click Test to Test whether the configuration is successful. Save configration:
Create a test group
Create a test user and set the password.
Add a test project
Set access permissions
Test item
Http: // 192.168.3.220/svn/test/