Svn is so simple. 1. installation and configuration 1. Subversion can run in either of the following ways: Apache Http Server and Subversion Standalone Server. For more information, see linux svn installation and configuration, does not work with apache. Install svn Based on httpd 2. install svn [plain] yum install-y httpd-devel subversion mod_dav_svn. You can install the subversion separately. Note that the path must be correct: [plain]. /configure -- with-apxs =/apache path/bin/apxs -- prefix =/usr/local/subversion -- with-apr =/usr/local/apache2 -- with-apr-util =/apache path -- with-ssl -- with-zlib -- enable-maintainer-mode 1 ), confirm that the svn module has been installed: mod_dav_svn [plain] # cd/etc/httpd/modules/# ls | grep svn mod_authz_svn.so mod_dav_svn.so 2 ), check whether svn has been installed successfully [plain] # svn -- version svn, version 1.4.2 (r22196) compiled Aug 10 2009, 1 8:00:04 Copyright (C) 2000-2006 CollabNet. subversion is open source software, see http://subversion.tigris.org/This product has DES software developed by CollabNet (http://www.Collab.Net /). the following repository access (RA) modules are available: * ra_dav: Module for accessing a repository via WebDAV (DeltaV) protocol. -handles 'HTTP 'scheme-handles 'http' scheme * ra_svn: Module for Ccessing a repository using the svn network protocol. -handles 'svn 'scheme * ra_local: Module for accessing a repository on local disk. -handles 'file' scheme 3: create a repository, modify svn configuration file 1), create a repository, [plain] # mkdir-p/var/www/svn # cd/var/www/svn # svnadmin create test # chown-R apache. apache svn 2). Edit the svn configuration file [plain] # vi/etc/httpd/conf. d/subversion. conf: [plain] LoadModule dav_svn_module mod Ules/mod_dav_svn.so LoadModule authz_svn_module modules/mod_authz_svn.so <Location/svn> DAV svn SVNParentPath/var/www/svn ### Limit write permission to list of valid users. # <limitaskt get propfind options report> # Require SSL connection for password protection. # SSLRequireSSL # AuthType Basic AuthName "Subversion repository" AuthzSVNAccessFile/var/www/svn/authz. conf AuthUserFile/va R/www/svn/user. passwd Require valid-user # </limitspont> </Location> if there is only one warehouse, replace the SVNParentPath parameter with SVNPath, but it is best not to do this, no one is sure that several repositories will be used in the future, while SVNParentPath can include multiple repositories, and the specified path is the parent directory of all repositories. 3) Add users to create accessible user files [plain] # htpasswd-bc/var/www/svn/user. to add a user to the passwd user name and password, run the following command [plain] # htpasswd-B/var/www/svn/user. passwd username and password 4), permission limit [plain] # vi/var/www/svn/authz. the conf content is as follows: [plain] [test:/] // This indicates, access Permissions under the root directory of repository test jason = rw // test repository zhangy users have read and write permissions peterson = r // test repository hunk users have read permissions [/] // this indicates * = r under the root directory of all repositories // This indicates read permission for all users # [groups] // This indicates group setting # svn1-developers = jason, peterso N // This represents a member of a group # svn2-developers = jason, kevin # [svn1:/] # @ svn1-developers = rw // if you add the @ symbol to the front, this indicates that after the group permission settings are completed, restart apache to [plain] # service httpd restart and access http: // your_ip/svn/test enter the user name and password to enter the svn test database. It is empty now and there is nothing in it, you can see it through this url after you submit new content later.