Subversion over Ubuntu Server 20.04
Configure svn server over Apache2, using https.
sudo apt update sudo apt upgrade sudo apt-get install apache2 sudo apt-get install subversion libapache2-mod-svn subversion-tools libsvn-dev sudo a2enmod dav dav_svn sudo service apache2 restart sudo mkdir -p /var/lib/svn/ sudo svnadmin create /var/lib/svn/apprepo sudo chown -R www-data:www-data /var/lib/svn sudo chmod -R 775 /var/lib/svn sudo touch /etc/apache2/dav_svn.passwd
now let’s set the password of the first user:
sudo htpasswd -cm /etc/apache2/dav_svn.passwd
configuriamo gli accessi:
sudo nano /etc/apache2/mods-enabled/dav_svn.conf
we configure the accesses to the svn folders
sudo nano /etc/apache2/dav_svn.authz
Apache restart:
sudo service apache2 restart