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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

SVN install on CentOS 7, EA4

Discussion in 'General Discussion' started by Neso, Oct 22, 2017.

  1. Neso

    Neso Active Member

    Joined:
    Feb 11, 2009
    Messages:
    26
    Likes Received:
    0
    Trophy Points:
    51
    Hi, can anybody post how to install SVN on CentOS 7+ with EA4 for shared users ?
     
  2. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,673
    Likes Received:
    73
    Trophy Points:
    28
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hi,

    You can try using the traditional method to install this module using yum. EA4 modules are all RPM based, so you can try installing it from another source and then incorporate it in your server..

    yum install subversion mod_dav_svn

    Look for the subversion configuration file where it is installed in your server with the above command: The file should have below content in it:
    --------------------- ---------------------
    LoadModule dav_svn_module modules/mod_dav_svn.so
    LoadModule authz_svn_module modules/mod_authz_svn.so
    LoadModule dontdothat_module modules/mod_dontdothat.so
    --------------------- ---------------------

    Just append the following segment in the same file.
    --------------------- ---------------------
    <Location /svn>
    DAV svn
    SVNParentPath /svn
    AuthName "SVN Repos"
    AuthType Basic
    AuthUserFile /etc/svn/svn-auth
    AuthzSVNAccessFile /svn/authz
    Require valid-user
    </Location>
    --------------------- ---------------------

    Give it a try..
     
  3. Neso

    Neso Active Member

    Joined:
    Feb 11, 2009
    Messages:
    26
    Likes Received:
    0
    Trophy Points:
    51
    I get this error:

    svn: error while loading shared libraries: libaprutil-1.so.0: cannot open shared object file: No such file or directory
     
    #3 Neso, Oct 23, 2017
    Last edited: Oct 23, 2017
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    41,494
    Likes Received:
    1,612
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
  5. websnail.net

    websnail.net Active Member

    Joined:
    Mar 24, 2002
    Messages:
    39
    Likes Received:
    1
    Trophy Points:
    308
    For anyone else finding this and wanting to know how to install Subversion for EA4

    Code:
    cd /usr/local/src
    wget http://subversion.tigris.org/downloads/subversion-1.9.7.tar.gz
    tar xfvz subversion-1.9.7.tar.gz
    cd subversion-1.9.7
    sh get-deps.sh
    ./configure --with-apr=/opt/cpanel/ea-apr15/bin/apr-1-config --with-apr-util=/opt/cpanel/ea-apr15/bin/apu-1-config
    make clean
    make
    make install
    Substitute the appropriate svn version and ea-apr directory, but otherwise it seems pretty simple

    Make sure you've created your custom.conf in /etc/httpd/conf/userdata/std/2_4/user/www.foo.tld/ with the usual auth code (eg:)
    Code:
    <IfModule mod_dav_svn.c>
      <Location /_dev>
        DAV svn
        SVNParentPath "/home/foo/svn/dev"
    
        # Our ACL (Access Control Policy)
        AuthzSVNAccessFile /home/foo/svn/svnaccess
    
        # Try anonymous access first, then usernames if required.
        Satisfy Any
        Require valid-user
    
        AuthType Basic
        AuthName "My Dev Repos"
        AuthUserFile /home/foo/svn/passwd
    
        <IfModule mod_security2.c>
    
            # Blanket approach (disable if possible)
            #SecRuleEngine Off
    
            # SubVersion Rules to disable to allow commits
            #SecRuleRemoveById 390616
    
        </IfModule>
    
      </Location>
    </IfModule>
    
     
Loading...

Share This Page