How to install svn on centos 6

Post Reply
Site Admin
Posts: 166
Joined: Sun Jul 01, 2012 9:07 am

How to install svn on centos 6

Post by a24uall »

Login to server as root
yum install mod_dav_svn subversion
cp -ar /etc/httpd/conf.d/subversion.conf /etc/httpd/conf.d/subversion.conf.bak7
> /etc/httpd/conf.d/subversion.conf
vi /etc/httpd/conf.d/subversion.conf
Add the below lines to subversion.conf

Code: Select all

LoadModule dav_svn_module     modules/
LoadModule authz_svn_module   modules/

<Location /svn>
   DAV svn
   SVNParentPath /home/svnanoop/public_html
   AuthType Basic
   AuthName "Subversion repositories"
   AuthUserFile /etc/svn-auth-users
   Require valid-user
chcon -h system_u:object_r:httpd_sys_content_t /home/svnanoop/public_html/anoopsvn1/
chcon -R -h apache:object_r:httpd_sys_content_t /home/svnanoop/public_html/anoopsvn1/*
Open browser
that should ask for the username and pass
Post Reply

Return to “Svn”