First step: Install Apache Subversion
Yum Install httpd
Yum Install Httpd-devel//for developing Apache modules
Yum Install Subversion
Yum install interface between MOD_DAV_SVN//subversion and Apache (through which Apache can access the repository, allowing the client to also access it using the extended protocol of HTTP WEBDAV/DELTAV)
Verify that the SVN module (MOD_DAV_SVN) is installed correctly
Ls/etc/httpd/modules | grep SVN
System prompt:
Mod_authz_svn.so
Mod_dav_svn.so
Step Two: Create SVN libraries and projects
MKDIR/MNT/SVN//Create SVN Library
Svnadmin Create/mnt/svn/projcet//Create Project
Step three: Add group and team members permissions
Groupadd Subversion//Create a group called Subversion to have the directory where the repository resides
Usermod-g subversion-a Apache//Add yourself and Apache users to the group members
View: More/etc/group | grep subversion
system hint:Subversion:x:506:apache
Fourth Step: Modify Project Permissions
Chown-r Apache:apache/mnt/svn/project
Fifth step: Configure HTTPD and SVN-associated configuration files
Check out the following: Enable the client to access the SVN archive via Apache, Apache needs to load the MOD_DAV_SVN module, in general, the configuration file already exists
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
<Location/repos>
DAV SVN
Svnparentpath/mnt/svn
#
# # Limit Write permission to list of valid users.
# <limitexcept GET PROPFIND OPTIONS report>
# # Require SSL connection for password protection.
# # Sslrequiressl
#
Authzsvnaccessfile/etc/svn-acl-conf #svn的配置文件
AuthType Basic
AuthName "Subversion Repos"
AUTHUSERFILE/ETC/SVN-AUTH-CONF#SVN Authenticated users ' files
Require Valid-user
# </LimitExcept>
</Location>
VI. Create SVN Authenticated Users
Htpasswd-m-b/etc/svn-auth-conf Summer (user name) 123QWEASD (password)
Seven, start httpd service and verification
/etc/init.d/https start
Open Web Input Http://ip/repos/projcet
Enter User name password verification
Viii. creating a project path in the server
mkdir www.server.com
CD www.server.com
SVN checkout Http://ip/repos/project
Enter the SVN username password and verify that it was created successfully
Its ok
SVN Server Setup for HTTP protocol (apache+subversion)