ndzlogo-1-1
Loading ...

INDIA – HEADQUARTERS

INDIA

UNITED STATES

CANADA

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 https://subversion.tigris.org/downloa…-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/httpsd-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:

/etc/httpsd/conf/userdata/std/2/username/svn.domain.com

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

TEST the custom configuration before you commit it!
/scripts/verify_vhost_includes

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

10. /scripts/ensure_vhost_includes –user=username
11. /scripts/rebuildhttpsdconf
12. /scripts/restartsrv_httpsd

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