[email protected]

learn – code – share

How to install config SVN in centos

Feb
19

Using Subversion

yum install -y subversion

yum install -y mod_dav_svn

mkdir /data/svn

svnadmin create /data/svn/repo1

chown -R apache:apache /data/svn/repo1

cd /data/svn/repo1/conf/

vi svnserve.conf

htpasswd -c /data/svn/repo1/conf/passwd jay

vi authz

[repo1:/]
farid = r
fikri = rw
* = #not access

 

vi /etc/httpd/conf/httpd.conf

 

[.....]
Include conf.d/*.conf
[.....]

cd /etc/httpd/conf.d/

vi subversion.conf

LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so

<Location /repo1>
DAV svn
SVNPath /data/svn/repo1
Authtype Basic
AuthName "My Repository"
AuthzSVNAccessFile /data/svn/repo1/conf/authz
AuthUserFile /data/svn/repo1/conf/passwd
Require valid-user
</Location>
service httpd restart

 

One Response to How to install config SVN in centos

  1. Good stuff man, carry on the good work.

Leave a Reply

Your email address will not be published. Required fields are marked *