Running multiple SVN repositories using svnserve on Centos

Posted on 2015-01-06
Last Modified: 2015-01-11
We set up an SVN server according to the instructions here:

And it worked great, we configured two repositories on that server, which were accessible as two SVN paths e.g.




Acting normal, both on same port.

We had a power cut and the service didn't start - and came up with an error like so:

svnserve root path '/var/svn' does not exist or is not a directory

Open in new window

Which has never been a used path on our system.

After messing around for ages we got the daemon to start with the command:

svnserve -d -r /repo1 

Open in new window

But this only presented one repository.

How can we set up the default configuration to present both repos on the same port somehow?

It's Centos 7.
Question by:butterhook
  • 2
  • 2
LVL 61

Expert Comment

ID: 40534053
You must use apache and mod_dav_svn

Accepted Solution

butterhook earned 0 total points
ID: 40534415
Hi there

The solution was in fact to remove the default options from /etc/sysconfig/svnserve as these were confusing the daemon.

svnserve -d with no parameters allows connections to any repositories by explicit path, which is what we wanted.
LVL 61

Expert Comment

ID: 40534527
Add at least -r /repos/ parameter and dont serve all your filesystem....

Author Closing Comment

ID: 40542881
We fixed it!

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now