How-To: Installing SVN in cPanel
From CPWiki
Contents |
[edit] 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.
[edit] Setting up Source Directory
Create a source directory
mkdir /usr/local/src/subversion
Navigate to the directory created above
cd /usr/local/src/subversion
[edit] Using RPM's
Use WGET to retrieve via HTTP each of the following files:
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:
rpm -Uvh *rpm
[edit] Installing Source
Retrieve the sourcecode using WGET:
wget http://subversion.tigris.org/downloads/subversion-1.5.2.tar.gz
Decompress the archive:
tar -zxvf subversion-1.5.2.tar.gz
go into the directory:
cd subversion*
Configure, make and install the software:
./configure make make install
[edit] Install Notes, Comments, Warnings ...
When installing SVN on VPS' such as Virtuozzo, you may find that the process of creating the repository hangs, due to a lack on entropy with /dev/random. It is therefore a better bet to actually develop and use SVN outside of the VPS realm, using a dedicated box.
If you wish to access SVN via Appache you will have to make sure you have upgrade to Apache 2.
[edit] Getting Started
Having setup the subversion software, you will then have to create a repository for the sourcecode. this can be done using:
svnadmin create /path/to/dir
And to find more information, the usual:
svn -- help

