There is a point to this story, but it has temporarily escaped my mind...
Contact Me MyFaceBook MyLinkedIn MyGitHub MyTwitter

Install Subversion (SVN) Server

I primarily use Git now for source control, but I sometime still need to set up subversion servers for different organizations. These are the steps that I do to install…

Install the necessary packages:

sudo apt-get install -y subversion apache2 libapache2-mod-svn

Create the directory of the subversion repository:

sudo mkdir -p /export/svn
sudo svnadmin create /export/svn
sudo chown -R www-data:www-data /export/svn

Configure Apache

cat > /tmp/dav_svn.conf << EOF
  <Location /svn>
     DAV svn
     SVNPath /export/svn
     AuthType Basic
     AuthName "Subversion Repository"
     AuthUserFile /etc/subversion/passwd
     Require valid-user
  </Location>
EOF

sudo mv /tmp/dav_svn.conf /etc/apache2/mods-available/dav_svn.conf
sudo chown root:root /etc/apache2/mods-available/dav_svn.conf

Restart Apache

sudo service apache2 restart

Add SVN Users as needed

sudo htpasswd -c /etc/subversion/passwd username
Copyright © 2022 by Julian Easterling. SOME RIGHTS RESERVED.
Privacy Policy              Terms of Use             


Creative Commons License
Except where otherwise noted, content on this site is
licensed under a Creative Common Attribution-Share Alike 4.0 International License.


All of the opinions expressed on this website are those of Julian Easterling and
do not represent the views of any of my current and previous clients or employers in any way.

If you notice an error on the site or content that has not been properly attributed, bring
it to my attention using the contact page and I will endeavor to fix it as soon as I can.

I accept no responsibility or liability for any damages incurred by following any of
my advice or by using any of the information on my site or of those sites that I link to.