1. install SVN and Apache
yum install -y httpd httpd-devel subversion mod_dav_svn
2. make sure you have installed the SVN modules: mod_dav_svn
#cd /etc/httpd/modules
#ls | grep svn
mod_authz_svn.so
mod_dav_svn.so
3. make sure you have installed the SVN
#svn- -version
4.SVN configuration
In/etc/httpd/conf.d Subversion.conf opened with a VIM configuration files under the directory modification option
Module configuration make sure that the following two sentences exist in the configuration file, you can’t access SVN repository
LoadModuledav_svn_module modules/mod_dav_svn.so
LoadModuleauthz_svn_module modules/mod_authz_svn.so
5.Svn Warehouse configuration
# mkdir -p /home/svn
# cd /home/svn
# svnadmin create myapp
# Apache.Apache MyApp default user $Apache httped services
#/Httpd/conf.d/Subversion.conf by adding the following configuration
LoadModuledav_svn_module modules/mod_dav_svn.so
LoadModuleauthz_svn_module modules/mod_authz_svn.so
<Location /svn>
DAV svn
Warehouse directory
SVNListParentPath on using multiple warehouses
AuthType Basic
AuthName “Authorization Realm”
/Svn/SVN/httpdpasswd user files
User configuration/SVN/AUTHZ
Require valid-user a user needs to log on
</Location>
6. Apathce access to user information
#/Var/svn/passwd Justin//create a httpd user, used for the first time need to use the-c option
# servicehttpd restart
7. users can access a SVN information
Create a passwd file under the MyApp/conf/passwd of the SVN repository, create a user by editing the file information, user password passwd configuration
8. the authz permissions control configuration
In the MyApp/conf/authzz created this SVN repository have an authz file to configure user permissions
9. start the SVN
svnserve -d -r /home/svn/myapp
ps aux | grep svn
Leave a Reply