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 62

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 62

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Xymon customize http timeout 2 86
ftp to port 21 4 43
maybe no no httpd.conf 6 47
Using Linux to replace Windows Server 2008 R2 for network drives 5 73
rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

772 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