Setup SVN
subversion repository
1. Install
below packages:
# yum install mod_dav_svn subversion
2. Modify Subversion
config file /etc/httpd/conf.d/subversion.conf with below content
LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so
<Location /svn>
DAV svn
SVNParentPath /var/www/svn
AuthType Basic
AuthName "Subversion repositories"
AuthUserFile /etc/svn-auth-users
Require valid-user
</Location>
3 3. Add SVN
(Subversion) users
# htpasswd -cm /etc/svn-auth-users user1
Create and configure SVN repository
# mkdir /var/www/svn
# cd /var/www/svn
# svnadmin create vlrepo
# chown -R apache.apache vlrepo
Note: SELinux should be in disable mode
Now restart
the apache service
# service httpd restartGo to http://localhost/svn/vlrepo address and you will be prompted for credentials. Use “user1” user credentials to login.
Now configure the repository.
To disable anonymous access and enable access control add following rows to /var/www/svn/vlrepo/conf/svnserve.conf file:
anon-access = none
authz-db = authz Now prepare the directories and files which needs to import to the SVN repository.
# mkdir -p
/VL/{Docs,IT,Tags}
# touch
/VL/Docs/doc{1..5}
# touch
/VL/IT/file{1..5}
# touch
/VL/Tags/tag{1..5}Now import the data to the repository
# svn import -m 'Initial import' /VL/ http://localhost/svn/vlrepo/
Enter the root password if it prompts you.
Enter the repository username(user1)
Enter the user(user1) password.
Now you can see the data will be added to the repository.
Store password unencrypted (yes/no)? no
Happy Browsing .... :)