Install Subversion on a cPanel/Centos Server
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
Create the svn_custom.conf at /etc/httpd/conf/userdata/std/2/[username]/www.domainname.com with the following
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 [COLOR="#FF0000">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.
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
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
DAV svn
SVNPath /home/[username]/svn/[repos-name]
AuthType Basic
AuthName "[Repository Label]"
AuthUserFile /home/[username]/svn/passwd
Require valid-user
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 [COLOR="#FF0000">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.
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
-
This thread may be of some use to you: Installing Subversion on a cPanel server (running on CentOS) - cPanel Forums 0 -
[quote="Infopro, post: 1505152">This thread may be of some use to you: Installing Subversion on a cPanel server (running on CentOS) - cPanel Forums
You can see this was a another thread I created long time ago but was not successful. Thanks0 -
[quote="milindras, post: 1505211">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 Thanks0 -
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 0
Please sign in to leave a comment.
Comments
4 comments