How to create new SVN repository

1. open

/etc/httpd/conf.d/subversion.conf

2. add appropriate section for new repository:

<Location /svn-repository>
DAV svn
SVNPath /srv/svn/repository
AuthType Basic
AuthName "repository Repository"
AuthzSVNAccessFile /srv/svn/svn-acl-conf
AuthUserFile /srv/svn/repository.htpasswd
Require valid-user
</Location>

3. Create new htpasswd file by:

htpasswd -cm /srv/svn/repository.htpasswd repository
New password:

Re-type new password:

4. Create repository dir:


cd /srv/svn
svnadmin create repository
chown -R apache.apache repository

5. Restart httpd service:

service httpd restart

May 29, 2018