The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Install Subversion on a cPanel/Centos Server

Discussion in 'General Discussion' started by milindras, Nov 12, 2013.

  1. milindras

    milindras Member

    Joined:
    Dec 29, 2010
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    UK
    Hi All,
    Having done quite lot of search and trying to installing subversion on a cpanel server seems to be very trouble.
    My Enironment is;

    Apache 2.2.25
    PHP 5.3.27
    subversion-1.8.4

    The instructions I followed so far

    Code:
    mkdir -p /usr/local/src/subverison
    cd /usr/local/src/subversion
    wget http://subversion.tigris.org/downloa...-1.8.4.tar.bz2
    tar xfj subversion-1.8.4.tar.bz2
    
    cd subversion-1.8.4
    
    ./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.9/srclib/apr-util
    make
    make install
    Create the svn_custom.conf at /etc/httpd/conf/userdata/std/2/[username]/www.domainname.com with the following

    Code:
    <IfModule mod_dav_svn.c>
    <Location /[repos-folder]>
    DAV svn
    SVNPath /home/[username]/svn/[repos-name]
    AuthType Basic
    AuthName "[Repository Label]"
    AuthUserFile /home/[username]/svn/passwd
    Require valid-user
    </Location>
    </IfModule>
    TEST the custom configuration before you commit it!
    /scripts/verify_vhost_includes

    /scripts/ensure_vhost_includes --user=[username]

    /scripts/rebuildhttpdconf
    /scripts/restartsrv_httpd


    Then Easy Apache update to enable DAV

    Then

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

    Add the lines:
    Code:
    LoadModule dav_svn_module modules/mod_dav_svn.so
    LoadModule authz_svn_module modules/mod_authz_svn.so

    PROBLEM: When I tried to save the configurationsit throwed an error because the above 02 modules was not found at /usr/local/apache/modules folder.
    Code:
    Sorry, your changes have introduced a syntax error in pre_main_2.conf. Please correct the issue.
    Error:
    Configuration problem detected on line 1 of file /usr/local/apache/conf/includes/pre_main_2.conf.tmp: : 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 --- /usr/local/apache/conf/includes/pre_main_2.conf.tmp --- 1 ===> LoadModule dav_svn_module modules/mod_dav_svn.so <=== 2LoadModule authz_svn_module modules/mod_authz_svn.so --- /usr/local/apache/conf/includes/pre_main_2.conf.tmp --- 
    Could some one from cPanel tech confirm this installation and order for this installation or direct me with the right instrauctions because I am trying this now for weeks but could not make it to work and very frustrating.

    Many Thanks
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,472
    Likes Received:
    201
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
  3. milindras

    milindras Member

    Joined:
    Dec 29, 2010
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    UK
  4. milindras

    milindras Member

    Joined:
    Dec 29, 2010
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    UK
    It will be very helpful if cpanel tech carry out this installation this sort of environment and come back to us with some clear instructions.


    many Thanks
     
  5. gflamerich

    gflamerich Well-Known Member

    Joined:
    Jul 21, 2003
    Messages:
    122
    Likes Received:
    0
    Trophy Points:
    16
    Hi Milindras.
    I thought I was the only one with troubles installing subversion ...

    Regarding your problem, I found in one of my many failed intents those modules placed in /usr/local/lib/libexec .. I have tried so many times to make it work that don't remember why installation put those modules there ... but if there are not in that place, maybe you can run a find command ...

    Maybe after that, we may figure out how to make it work.

    I have a couple of subversions but trying to update in new boxes, with no result.
    I had follow the instructions to install a few years ago and everything worked like a charm, but not this time.
    After installing subversion and running all config commands, I can access via web. I can login and see "Revision:0", but any intent to checkout ends with

    Unexpected HTTP status 405 'Method Not Allowed' on '/test'

    First I thought it was mod_security related, but then deactivate mod security with configserver add on .... same result...

    Tried with svn 1.8 and 1.7 over apache 2.2.24.
    My OS are centos 5.8 X64.

    Hope someone could update instructions
     
Loading...

Share This Page