SVN install on CentOS 7, EA4
Hi, can anybody post how to install SVN on CentOS 7+ with EA4 for shared users ?
-
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. --------------------- --------------------- DAV svn SVNParentPath /svn AuthName "SVN Repos" AuthType Basic AuthUserFile /etc/svn/svn-auth AuthzSVNAccessFile /svn/authz Require valid-user --------------------- --------------------- Give it a try.. 0 -
I get this error: svn: error while loading shared libraries: libaprutil-1.so.0: cannot open shared object file: No such file or directory 0 -
Hello, You may find the following threads helpful: EA4 Pecl install SVN ( subversion ) Location path for apr-util & apr-1-config using EA4 Thank you. 0 -
For anyone else finding this and wanting to know how to install Subversion for EA4 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:)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 # Blanket approach (disable if possible) #SecRuleEngine Off # SubVersion Rules to disable to allow commits #SecRuleRemoveById 390616
0 -
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: I am stuck. Not sure what is wrong here. Please help me to install subversion. 0 -
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.0 -
Yes I am logged in as root. For pwd command I get below response - pwd /usr/local/src/subversion-1.9.7 0 -
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: export LD_LIBRARY_PATH="/opt/cpanel/ea-apr16/lib64/"
Thank you.0 -
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. 0 -
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. 0 -
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-config0 -
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. 0
Please sign in to leave a comment.
Comments
12 comments