Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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

Discussion in 'General Discussion' started by bbauson, Feb 12, 2014.

  1. bbauson

    bbauson Registered

    Feb 12, 2014
    Likes Received:
    Trophy Points:
    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/
    LoadModule authz_svn_module modules/

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

    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/ into server: /usr/local/apache/modules/ 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
  2. cPanelJared

    cPanelJared Technical Analyst

    Feb 25, 2010
    Likes Received:
    Trophy Points:
    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:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. outofcontrol

    outofcontrol Member

    May 18, 2009
    Likes Received:
    Trophy Points:

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice