Physical Address

304 North Cardinal St.
Dorchester Center, MA 02124

Install subversion 1.8.10 on CentOS 6.5 – Plesk 12

Install the wandisco repo to get the latest version of subversion for CentOS

name=Wandisco SVN Repo

Issue the following at shell

yum install subversion mod_dav_svn

Restart httpd, it’ll do it itself while installing but go ahead and restart just in case it doesn’t.

service httpd restart

Create a domain or a subdomain on the Plesk server and add the following to the vhost.conf at /var/www/vhosts/system/

<Location />
	DAV svn
	SVNParentPath /var/www/vhosts/
	SVNListParentPath On
	AuthzSVNAccessFile /var/www/vhosts/
	AuthType Basic
	AuthName "XYZ Subversion System"
	AuthUserFile /var/www/vhosts/
	Require valid-user

Now create a svn user, note that these users would be independent of system and Plesk users

htpasswd -m /var/www/vhosts/ testuser

Now issue the following command to get Plesk to read the new vhost.conf file

/usr/local/psa/admin/bin/httpdmng --reconfigure-all

Create a test repo

svnadmin create /var/www/vhosts/
chown -R <DOMAIN USERNAME> /var/www/vhosts/

Create an entry in the auth file

user = rw

Based on your folder structure inside the repo, you can even grant access to one particular folder N levels inside the structure tree.

That’s it, try it. Leave a comment if you experience any issue.