SVN install error

ARUN Posted in SVN, WHM BACKEND
0

Getting the following error while trying to install SVN using yum

yum install subversion

Error: Missing Dependency: perl(URI) >= 1.17 is needed by package subversion-1.4.2-4.el5_3.1.x86_64 (base)Error: Missing Dependency: httpd-mmn = 20051115 is needed by package mod_dav_svn-1.4.2-4.el5_3.1.x86_64 (base) You could try using –skip-broken to work around the problem You could try running: package-cleanup –problems                        package-cleanup –dupes                        rpm -Va –nofiles –nodigest

Solution :

vi /etc/yum.conf

Remove perl* from exclude list and run   yum install subversion

After SVN is installed please dont forget to add the perl* in yum.conf as cpanel may break if perl is updated when you run yum update the next time.

How to install and configure SVN on cpanel server

ARUN Posted in INSTALLATION, SVN
0

cd /opt

wget http://subversion.tigris.org/downloads/subversion-1.6.5.tar.gz

wget http://subversion.tigris.org/downloads/subversion-deps-1.6.5.tar.gz

tar -xzf subversion-1.6.5.tar.gz
tar -xzf subversion-deps-1.6.5.tar.gz
cd subversion-1.6.5

[  ./configure --prefix=/opt/svn --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.13/srclib/apr-util --with-ssl   ]

make

make install

 

svnadmin create testrepo

 

Now create the SVN auth file using the below command :

htpasswd -cm .svn.htpasswd <svnuser>    —–> Create password

NOTE :   htpasswd -m .svn.htpasswd <svnuser>    ——> Modify password

 

vi /usr/local/apache/conf/httpd.conf

Include the below line under the conf file for that particular domain.

Include "/usr/local/apache/conf/userdata/std/2/USERNAME/DOMAIN.COM/*.conf"

Now edit
vi /usr/local/apache/conf/userdata/std/2/USERNAME/DOMAIN.COM/svn.conf  and add the below lines
=============================================================
<Location /reponame>

DAV svn

SVNListParentPath on

SVNPath /home/USERNAME/REPO_NAME

AuthType Basic

AuthName “Subversion"

AuthUserFile "/home/USERNAME/svn-auth-file"

Require valid-user

</Location>
===================================================================
Restart httpd
NOTE:
1) MAKE SURE THE REPO IS CREATED OUTSIDE PUBLIC_HTML FOLDER
2) CHECK MOD_SEC RULES ARE CREATING ANY PROBLEM
tail -f /usr/local/apache/logs/error_log