[root@server~]# Yum install httpd mod_dav* mod_dav_au*

Add these file in httpd.conf

LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule dav_svn_module modules/mod_authz_svn.so

#<Directory />
#    Options FollowSymLinks
#    AllowOverride None
#</Directory>

Add these under above code

<Location /svnrepos>
  DAV svn
  SVNPath /svnrepos/
  AuthType Basic
  AuthName “Subversion repository”
  AuthUserFile /svnrepos/conf/svn-auth-file
  Require valid-user
</Location>

[root@server~]# svnadmin create –fs-type fsfs /home/svn/repositories  –To create Repos

/home/svn/repositories  – should be 755 and apache owner

[root@server~]# htpasswd -c  /etc/httpd/conf/svn-auth-file user1  – create user

[root@server~]# htpasswd   /etc/httpd/conf/svn-auth-file user2    – add other user

[root@server~]# chown apache:apache /home/svn/repositories/ -R
 
Testing
 
[root@server~]# svn list –verbose http://localhost/svnrepos
[root@server~]# svn delete  -m “deleting dir” http://localhost/svnrepos/anil
[root@server~]# svn list –verbose http://localhost/svnrepos

Posted in: Linux.
Last Modified: January 12, 2017

Leave a reply