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,734
    Likes Received:
    78
    Trophy Points:
    78
    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:
    42,802
    Likes Received:
    1,714
    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>
    
     
  6. Yogi Coder

    Yogi Coder Registered

    Joined:
    Apr 8, 2018
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hi, I am a newbie on this forum and reasonable new to Linux administration, so please don't mind if I ask some silly questions.

    I am trying to follow above mentioned steps to install subversion 1.9.7, on CentOS 7, WHM C Panel 68 version.
    When I try using configure command like this -
    ./configure --with-apr=/opt/cpanel/ea-apr16/bin/apr-1-config --with-apr-util=/opt/cpanel/ea-apr16/bin/apu-1-config

    But I am getting error as below -
    checking for APR... configure: error: the --with-apr parameter is incorrect. It must specify an install prefix, a build directory, or an apr-config file.

    I checked path /opt/cpanel/ea-apr16.

    The contents of that path are as below -
    ls /opt/cpanel/ea-apr16/lib64/
    apr-util-1 libapr-1.so.0 libapr-1.so.0.6.3 libaprutil-1.so.0 libaprutil-1.so.0.6.1

    I checked dependencies, it shows below results -
    sh get-deps.sh
    Local directory 'zlib' already exists; the downloaded copy won't be used
    Local directory 'serf' already exists; the downloaded copy won't be used
    Local directory 'sqlite-amalgamation' already exists; the downloaded copy won't be used
    Local directory 'apr' already exists; the downloaded copy won't be used
    Local directory 'apr-util' already exists; the downloaded copy won't be used

    If you require mod_dav_svn, the recommended version of httpd is:
    http://archive.apache.org/dist/httpd/httpd-2.4.10.tar.bz2

    If you require apr-iconv, its recommended version is:
    http://archive.apache.org/dist/apr/apr-iconv-1.2.1.tar.bz2

    I am stuck. Not sure what is wrong here. Please help me to install subversion.
     
  7. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    42,802
    Likes Received:
    1,714
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Can you verify if you are logged in as the "root" user? If so, what's the output of "pwd" before running that command?

    Thank you.
     
  8. Yogi Coder

    Yogi Coder Registered

    Joined:
    Apr 8, 2018
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Yes I am logged in as root.

    For pwd command I get below response -
    pwd
    /usr/local/src/subversion-1.9.7
     
  9. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    42,802
    Likes Received:
    1,714
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello @Yogi Coder,

    Keep in mind that assistance with the installation of third-party applications such as SVN is not something we offer support for. That said, we can offer some general troubleshooting steps. Can you run the following command before running the configure command to see if it makes a difference? EX:

    Code:
    export LD_LIBRARY_PATH="/opt/cpanel/ea-apr16/lib64/"
    Thank you.
     
  10. Yogi Coder

    Yogi Coder Registered

    Joined:
    Apr 8, 2018
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Thank you for your help and I completely understand that SVN support is not directly related to Cpanel. However I am unable to use Subversion independently along with Cpanel in place.
    What I am wondering that is there a way to rebuild/fetch the APR config files which are currently missing. I searched everywhere but they are not to be found. I tried downloading seprate APR in usr/local/src and build them from scratch but that created a separate set of APR and somehow SVN built using that did not create the mod_svn files necessary to include in Easyapache custom module load menu.
     
  11. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    42,802
    Likes Received:
    1,714
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hi @Yogi Coder,

    Were you able to try using the command referenced in my last response to see if that allowed the installation to proceed?

    Thank you.
     
  12. Yogi Coder

    Yogi Coder Registered

    Joined:
    Apr 8, 2018
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    India
    cPanel Access Level:
    Root Administrator
    I still get same error. What I am still confused is where should I get those missing files in ea-apr16? Does it mean my hosting provider has mistakenly removed those files? Is there a way I can rebuild/bring back those files and try again?

    ./configure --with-apr=/opt/cpanel/ea-apr16/bin/apr-1-config --with-apr-util=/opt/cpanel/ea-apr16/bin/apu-1-config
     
  13. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    42,802
    Likes Received:
    1,714
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    The information you provided suggests the files are not missing, but rather your system isn't configured to properly detect the paths. I recommend reaching out to a system administrator for assistance with installing/configuring your application. We provide a list of companies offering system administration services at:

    System Administration Services | cPanel Forums

    Thank you.
     
Loading...

Share This Page