Cpanel Install Mod_dav_svn

Google alot of pagess/sites purporting to have good instructions on installing SVN on a WHM/cPanel Cento OS 5 machine but yours were by far the most inclusive and clear ones we did run into trouble because we didnt have davmodules installed built a quick rebuild of apache to include it and then re run your instructions and it was easy peasy thank you Sir you rock! I have read many posts on installing Subversion on WHM servers. A few were helpful, one was pretty good, but none of them worked for a long time. EasyApache updates would break most the installations. This is my method of installing (and updating) Subversion on a WHM server so that it will not be broken by EasyApache rebuilds. The module moddavsvn allows subverion to be served via Apache, because its installation is not allowed on shared server thats what I have learned. Hence many people fall for guide B, which can work for us by establishing svn connection over ssh (svn+ssh) however I am trying to bend the spoon to see if svn connection can be established over. is a plug-in module for the Apache HTTP server, used to make a Subversion repository available to others over the Internet or an intranet. Last updated on 2020-12-16 09:13:59 -0600.

SVN Installation in Cpanel

In order to install SVN in server, we need mod_dav module in cpanel. Run the following command and check if the below modules are present:

httpd -M grep dav
dav_module (static)
dav_fs_module (static)
dav_lock_module (static)
dav_svn_module (shared)

If dav_module is not installed in the server, you can enable it by running easyapache in the server. Enable DAV, DAVfs, DAVLock from the apache modules and build apache.

Next step is to install subversion in the server. For that, perform the following steps:

cd /usr/local/src/
rpm –import
rpm -K rpmforge-release-0.5.1-1.el5.rf.x86_64.rpm
rpm -i rpmforge-release-0.5.1-1.el5.rf.x86_64.rpm

Once the repository is installed, install subversion using the following command:

yum –enablerepo=rpmforge install subversion

Now to build dav_svn_module, perform the following steps:

cd /usr/local/src
tar xfj subversion-1.6.3.tar.bz2
cd subversion-1.6.3
./configure –with-apxs=/usr/local/apache/bin/apxs –with-apr=/home/cpeasyapache/src/httpd-2.2.21/srclib/apr –with-apr-util=/home/cpeasyapache/src/httpd-2.2.21/srclib/apr-util
make install

If you get an error that sqlite-amalgamation needs to be installed, perform the following steps:

Cpanel Install Mod_dav_svnMod_dav_svn

cd /usr/local/src
tar -zxvf sqlite-amalgamation-3.6.13.tar.gz
cd subversion-1.6.3
mkdir sqlite-amalgamation
cp ./sqlite-3.6.13/sqlite3.c ./sqlite-amalgamation/

Then build it again using the following commands:

./configure –with-apxs=/usr/local/apache/bin/apxs –with-apr=/home/cpeasyapache/src/httpd-2.2.21/srclib/apr –with-apr-util=/home/cpeasyapache/src/httpd-2.2.21/srclib/apr-util
make install

Now we need to configure apache and subversion.

mkdir -p /usr/local/apache/conf/userdata/std/2/<user>/<domain>/
vi svn.conf

Add the following lines to the file svn.conf

<IfModule mod_dav_svn.c>
<location name_of_svn>
DAV svn
SVNPath /home/<username>/public_html/name_of_svn
AuthType Basic
AuthName “SVN Repo”
AuthUserFile /home/<username>/.svn.htpasswd
Require valid-user

Add the username and password in the file /home/<username>/.svn.htpasswd using htpasswd command

htpasswd -cm /home/<username>/.svn.htpasswd username

In the file /usr/local/apache/conf/includes/pre_main_2.conf, add the following:

LoadModule dav_svn_module /etc/httpd/modules/
LoadModule authz_svn_module /etc/httpd/modules/

Midnight at the barclay hotel pdf free download. 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

Now rebuild apache config and restart apache using the following commands:

/scripts/ensure_vhost_includes –user=username

Cpanel Install Mod_dav_svn Plugin

That’s all.