Installing Subversion on a cPanel server (running on CentOS 6.X)

bbauson

Registered
Feb 12, 2014
1
0
1
cPanel Access Level
Root Administrator
I just got my server from my client which will be used as development server. I was expecting to have a dedicated server where I can select what OS to install but surprisingly it is using WHM/cPanel. I am planning to install subversion and would want to be accessed via HTTP. I've installed SVN on other Linux distro but not on CentOS with cPanel.

So I tried:
$ yum install subversion mod_dav_svn

then I checked the /usr/local/apache/conf.d/subversion.conf, it has the required module calls but it is not working.

I tried to move the contents of this conf file to - /usr/local/apache/conf/httpd.conf
#####
LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so

<Location /repos>
DAV svn
SVNParentPath /var/www/svn
</Location>
######

Restart the httpd service and got this error
# /etc/init.d/httpd restart
httpd: Syntax error on line 352 of /usr/local/apache/conf/httpd.conf: Cannot load /usr/local/apache/modules/mod_dav_svn.so into server: /usr/local/apache/modules/mod_dav_svn.so: cannot open shared object file: No such file or directory

I thought it has been installed, but why does Apache can't see the module?

Hope some could help. TIA
 

JaredR.

Well-Known Member
Feb 25, 2010
1,834
23
143
Houston, TX
cPanel Access Level
Root Administrator
While we in cPanel support do not directly support installing Subversion, I wanted to point out that the changes you are making to httpd.conf will be lost the next time httpd.conf is updated for any reason - such as adding or removing a cPanel account. There are many other actions in the WebHost Manager that can also trigger the httpd.conf file being overwritten, and direct edits will not be preserved. Instead of directly editing httpd.conf, we provide a mechanism for making custom changes that will be preserved. The following documentation explains how to do this:

EasyApache: Changes Contained Outside a VirtualHost Directive
Changes Contained within a VirtualHost Directive

There are actually several threads in this forum concerning installing Subversion on a cPanel server. You may find the following threads helpful:

http://forums.cpanel.net/f34/installing-subversion-cpanel-server-running-centos-250831.html
http://forums.cpanel.net/f5/installing-subversion-cpanel-server-153649.html
http://forums.cpanel.net/f5/installation-intructions-subversion-cpanel-75346.html