Installing SVN on Cpanel with mod_dav_svn support

This howto helps to install SVN (subversion  ) on a cpanel server

Since Cpanel compiles httpd from source ; it is best we compile svn also from source and install the mod_dav_svn apache2 module along with it. Please note that you must have apache2.0 inoder for this to work

Step1 - mod_dav_svn requires mod_dav to be present.So ensure that you have selected dav in your easyapache 3 configuration

This can be confirmed by

===============================

/usr/local/apache/bin/httpd -l|grep dav
mod_dav.c
mod_dav_fs.c
mod_dav_lock.c

===============================

Next we have to download subversion source. I have used the latest source at the time of writing; so please use what is latest now

cd /usr/local/src

wget http://subversion.tigris.org/downloads/

tar -xvjf subversion-1.6.1.tar.bz2

wget http://www.sqlite.org/sqlite-amalgamation-3.6.11.tar.gz

tar -xvzf sqlite-amalgamation-3.6.11.tar.gz

mkdir /usr/local/src/subversion-1.6.1/sqlite-amalgamation

cp sqlite-3.6.11/sqlite3.c /usr/local/src/subversion-1.6.1/sqlite-amalgamation/sqlite3.c

cd /usr/local/src/subversion-1.6.1

./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.11/srclib/apr-util

make
make install

Please note that you must substitute the correct directories in configure line above suitable to your system. The system i had was using httpd-2.2.11

The make install step will add the LoadModule line in httpd.conf.For clarity purpose of cpanels ea3 system.we remove those lines from httpd.conf and add it in

WHM - Apache Setup - Include Editor - Pre-Main Include

and save the configuration

Thats it !.The next step would be to configure apache as per your requirement and according to the documentation of including custom edits in cpanels ea3 system:
http://svnbook.red-bean.com/en/1.1/ch06s04.html
http://www.cpanel.net/documentation/easyapache/customdirectives.html

Share and Enjoy:
  • Digg
  • Mixx
  • del.icio.us
  • StumbleUpon
  • Facebook
  • TwitThis
  • Technorati
  • Google

Tags: , ,

Leave a Reply