SVN install on CentOS 7, EA4

Neso

Active Member
Feb 11, 2009
29
0
51
Hi, can anybody post how to install SVN on CentOS 7+ with EA4 for shared users ?
 

24x7server

Well-Known Member
Apr 17, 2013
1,907
95
78
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..
 

Neso

Active Member
Feb 11, 2009
29
0
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
 
Last edited:

websnail.net

Active Member
Mar 24, 2002
40
1
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>
 

Yogi Coder

Registered
Apr 8, 2018
4
0
1
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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,201
363
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
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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,201
363
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.
 

Yogi Coder

Registered
Apr 8, 2018
4
0
1
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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,201
363
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.
 

Yogi Coder

Registered
Apr 8, 2018
4
0
1
India
cPanel Access Level
Root Administrator
Were you able to try using the command referenced in my last response to see if that allowed the installation to proceed?
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
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,201
363
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.