Setup SVN in cPanel

SVN or Apache Subversion is a software versioning and revision control system . Developers worldwide use SVN to maintain current and historical versions of files which change often such as  source code, web pages and documentation

Follow the below mentioned steps to install SVN on your cPanel servers

mkdir -p /usr/local/src/subverison

  1. cd /usr/local/src/subversion
  2. wget…-1.5.0.tar.bz2
  3. tar xfj subversion-1.5.0.tar.bz2
  4. cd subversion-1.5.0
  5. ./configure –with-apxs=/usr/local/apache/bin/apxs –with-apr=/usr/local/apache/bin/apr-1-config –with-apr-util=/home/cpeasyapache/src/httpd-2.2.9/srclib/apr-util
  6. make
  7. make install
  8. We create a custom conf for the account using the new EA3 feature:


<Location /Smarty>
DAV svn
SVNPath /home/username/svn/test
AuthType Basic
AuthName “test Repository”
AuthUserFile /home/username/svn/passwd
Require valid-user

TEST the custom configuration before you commit it!

Assuming all is well… commit the svn conf and restart the apache server:

10. /scripts/ensure_vhost_includes –user=username
11. /scripts/rebuildhttpdconf
12. /scripts/restartsrv_httpd

Now we need to create the svn repository.

cd /home/<username>/public_html/
svncreate admin name_of_svn
chown -R user:user name_of_svn
chmod -R 775 name_of_svn


There are no revisions for this post.

Tags: , , , ,

No comments yet.

Leave a Reply