SVN (Subversion)
Installation of SVN
1)Install
“httpd” service
2)
Install SVN
[root@localhost ~]# yum
install subversion mod_dav_svn
[root@localhost ~]# rpm -qa
| egrep '(subversion|mod_dav_svn)'
Configuring SVN
[root@localhost ~]# vi
/etc/httpd/conf.d/subversion.conf
LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so
<Location /repo>
DAV svn
SVNPath /var/www/svn/repo
AuthType Basic
AuthName "Subversion repos"
AuthUserFile /etc/svn-auth-conf
Require valid-user
</Location>
:wq!
Creating SVN Us ers (PM & TL)
[root@localhost ~]#
htpasswd -c /etc/svn-auth-conf manager
New password:
Re-type new password:
Adding password for user PM
[root@localhost ~]#
htpasswd /etc/svn-auth-conf TL1
New password:
Re-type new password:
Adding password for user
TL1
[root@localhost ~]#
htpasswd /etc/svn-auth-conf TL2
New password:
Re-type new password:
Adding password for user
TL2
(manager, TL1, TL2 - This
user use for SVN repository login)
[root@localhost ~]# mkdir
-p /var/www/svn
[root@localhost ~]# cd
/var/www/svn/
[root@localhost svn]#
svnadmin create repo
[root@localhost svn]# ls
repo
[root@localhost ~]# chmod
-R 777 /var/www/svn/repo
[root@localhost svn]# chown
-R apache.apache repo
[root@localhost svn]#
service httpd restart
Stopping
httpd:
[OK]
Starting httpd: [OK]
Comments
Post a Comment