

Install subversion for VPS (cPanel) under CentOS
Posted by: Andrei in Linux, Programming, WebI’ve been tasked to add some features (subversion is one of them) under a Virtual Private Server (cPanel WHM) on a Hosting site.
First I downloaded and unarchived subversion:
cd /usr/local/src/subversion
wget http://subversion.tigris.org/downloads/subversion-1.6.9.tar.bz2
tar xfj subversion-1.6.6.tar.bz2
Since the last versions are requiring SQLite, I had to download and copy one file from sqlite folder to subversion folder:
wget http://www.sqlite.org/sqlite-amalgamation-3.6.13.tar.gz
tar -xvf sqlite-amalgamation-3.6.13.tar.gz
mkdir subversion-1.6.9/sqlite-amalgamation
cp sqlite-3.6.13/sqlite3.c subversion-1.6.9/sqlite-amalgamation/sqlite3.c
cd subversion-1.6.9
Configure, make and install:
make
make install
Then creating a repository:
mkdir svn && cd svn
svnadmin create –fs-type fsfs <repo_name>
Create a template for my projects and initialize repository:
cd /svntemp
mkdir website1
mkdir website1/trunk
mkdir website1/branches
mkdir website1/tags
svn import /svntemp file:///svn/<repo-name> –message "Creating initial repo."
svn list –verbose file:///svn/<repo-name>
Create users inside authz file and add them to svnserve.conf. You might want to set anonymous permissions to none.
Access your svn via internet with:
Voila!
Related posts:
[…] http://www.webxpert.ro/andrei/2010/03/12/install-subversion-for-vps-cpanel-under-centos […]
Hi,
I have setup third party SVN unfuddle with cPanel hosting as dev server, you could visit my blog, thanks.
Here is the link:
http://codefighters.blogspot.com/2011/03/unfuddle-svn-setup-with-cpanel-shared.html
@Montaser: backlink approved 😉