1. Experimental Topology
SVN server (Subversion):192.168.1.126
SVN client (TortoiseSVN):(http://tortoisesvn.net/downloads.html)
2. prepare the yum source
#cd/etc/yum.repos.d/#wget Http://mirrors.163.com/.help/CentOS6-Base-163.repo
3. Install packages
#yum Install httpd httpd-devel mod_dav_svn Subversion mod_ssl
4. See if the test installs the svn module
# Ls/etc/httpd/modules/| grep svnmod_authz_svn.somod_dav_svn.so # SVN--version
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/54/3A/wKiom1R8hC_DI3lTAAIMLPst4Z0890.jpg "title=" v1.jpg "alt=" wkiom1r8hc_di3ltaaimlpst4z0890.jpg "/>
5.Create directory, initialize
# mkdir-p/data/svn/repo# cd/data/svn/repo# svnadmin create peace////after the command is executed, multiple files are automatically created in the Peace directory, respectively conf, DB, format, hooks , locks, README.txt. # Chown-r Apache.apache Peace
6, configuration subversion.conf
LoadMOD_DAV_SVNmodules, Generalapache2load These two modules normallyApacheneed to loadMOD_DAV_SVNmodule. IfApacheis installed in accordance with the preset directory,MOD_DAV_SVNthe module should be installed in theApacheInstallation Location(The default path is/etc/httpd/)of theModulessubdirectory within the directory. AlsoApachethe configuration filehttpd.conf(the default path isetc/httpd/conf/) already in useLoadModuleinstruction to load the module (if not, manually add) Note that this command must appear in otherSubversionbefore the relevant directive. Also to loadmod_authz_svn.somodule.
LoadModule dav_svn_module modules/mod_dav_svn.soloadmodule authz_svn_module modules/mod_authz_svn.so ... <Location /repos> DAV SVN #SVNParentPath/data/svn/repo//later will explain why not use this svnpath/data/svn/repo/peace svnlistparentpath on AuthType Basic authname "Authorization Realm" Authuserfile/data/svn/passwdfile authzsvnaccessfile/d Ata/svn/accessfile Require valid-user</location>
7. Add User Password
# htpasswd-c/data/svn/passwdfile peace//Create user password, first with-C, only add the following # Htpasswd/data/svn/passwdfile test
8. re-starting Apache
#service httpd Restart
9. The rights access control file is created below, You can view specific permissions by yourself :
# VI/DATA/SVN/ACCESSFILE[/]*=RW [groups]dev=peacetest=test [repos:/] @test =r@dev=r [repos:/test] @test =rw*=
10. start svn
#svnserver-D
11. Client Login View
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/54/39/wKioL1R8hMiT2BnJAAD9uyDFD8M029.jpg "title=" v2.jpg "alt=" wkiol1r8hmit2bnjaad9uydfd8m029.jpg "/>
Error Resolution:
You don ' t had permission to Access/repos in this server (SVN)
Workaround:
subversion.conf content Svnparentpath changed to Svnpath
Content Svnparentpath not changed to Svnpath
So the archive will be treated like a root directory. The above error has occurred
This article is from the "Bamboo Potential" blog, please be sure to keep this source http://peaceweb.blog.51cto.com/3226037/1585271
CentOS6.4 APACHE+SVN