Install Subversion on a cPanel/Centos Server

milindras

Member
Dec 29, 2010
22
0
51
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
 

milindras

Member
Dec 29, 2010
22
0
51
UK
You can see this was a another thread I created long time ago but was not successful.

Thanks
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
 

gflamerich

Well-Known Member
Jul 21, 2003
122
0
166
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