Procedimento de instalação para Ubuntu:
sudo apt-get install apache2 subversion libapache2-mod-svn libapache2-svn
sudo a2enmod dav dav_svn
sudo service apache2 restart
sudo mkdir -p /var/lib/svn/
sudo svnadmin create /var/lib/svn/meurepositorio
sudo chown -R www-data:www-data /var/lib/svn
sudo chmod -R 775 /var/lib/svn
sudo touch /etc/apache2/dav_svn.passwd
sudo htpasswd -m /etc/apache2/dav_svn.passwd admin
sudo vim /etc/apache2/mods-enabled/dav_svn.conf
Alias /svn /var/lib/svn
<Location /svn>
DAV svn
SVNParentPath /var/lib/svn
AuthType Basic
AuthName "Subversion Repository"
AuthUserFile /etc/apache2/dav_svn.passwd
Require valid-user
</Location>
service apache2 restart
Teste:
http://example.com/svn/meurepositorio/
Criando contas:
sudo htpasswd -m /etc/apache2/dav_svn.passwd usuarioFonte: https://tecadmin.net/install-subversion-server-on-ubuntu/