Installing SVN in cPanel

Here you can find tutorials and notes for server-side maintenance/configuration

Installing SVN in cPanel

Postby lik » Sat Aug 08, 2009 1:45 am

Installing SVN in cPanel

SVN is a version management tool "much like CVS". It is used to develop many large sites online, amongst them LastFM (http://www.last.fm), Zarpie (http://www.zarpie.com) and Flickr (http://www.flickr.com/). It has been in development for many years and there are a wide range of OS compatible versions available.

In this example, we will show you how to install using the RPM's and Source for Red Hat Enteprise 3, others can be found in the directories at SummerSoft (http://summersoft.fay.ar.us/pub/subversion/latest/). Each version page provides the end user with some guidance notes on what to install and the requirements.

1.Setting up Source Directory

Create a source directory
Code: Select all
mkdir /usr/local/src/subversion

Navigate to the directory created above
Code: Select all
cd /usr/local/src/subversion


2.a Using RPM's

Use WGET to retrieve via HTTP each of the following files:
Code: Select all
wget http://summersoft.fay.ar.us/pub/subversion/latest/rhel-3/bin/subversion-1.2.3-1.rhel3.i386.rpm
wget http://summersoft.fay.ar.us/pub/subversion/latest/rhel-3/bin/subversion-devel-1.2.3-1.rhel3.i386.rpm
wget http://summersoft.fay.ar.us/pub/subversion/latest/rhel-3/bin/subversion-debuginfo-1.2.3-1.rhel3.i386.rpm
wget http://summersoft.fay.ar.us/pub/subversion/latest/rhel-3/bin/neon-0.24.7-1.i386.rpm
wget http://summersoft.fay.ar.us/pub/subversion/latest/rhel-3/bin/mod_dav_svn-1.2.3-1.rhel3.i386.rpm

Run the RPM install command:
Code: Select all
rpm -Uvh *rpm

2.b Installing Source

Retrieve the sourcecode using WGET:
Code: Select all
wget http://subversion.tigris.org/downloads/subversion-1.5.2.tar.gz
tar -zxvf subversion-1.5.2.tar.gz
cd subversion*
./configure
make
make install

If you wish to access SVN via Appache you will have to make sure you have upgrade to Apache 2.

3. Getting Started

Having setup the subversion software, you will then have to create a repository for the sourcecode. this can be done using:
Code: Select all
svnadmin create /path/to/dir

And to find more information, the usual:
Code: Select all
svn -- help
lik
Founder
Founder
 
Posts: 497
Joined: Wed Dec 15, 2010 3:21 am

Return to Server Side Actions

 


  • Related topics
    Replies
    Views
    Last post
cron