Install SVN Packages
# yum -y install subversion mod_dav_svn
Create directory for first SVN Repository
# mkdir /svnrepos
# cd /svnrepos
# chown -R apache.apache /svnrepos
# svnadmin create repo1
Enable Permissions through selinux
# chcon -R -h -t httpd_sys_content_t /svnrepos
Modify the SVN Configuration File
# 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 />
DAV svn
SVNParentPath /svnrepos
SVNListParentPath on
AuthType Basic
AuthName "Subversion repositories"
AuthUserFile /etc/svn-auth-users
Require valid-user
</Location>
Create User for SVN Access
# htpasswd -cm /etc/svn-auth-users svnuser
Restart Apache Web Server
# service httpd restart
Open Firewall to allow access to port 80
# iptables -I INPUT 5 -p tcp -m state --state NEW -m tcp --dport 80 -j ACCEPT
# service iptables save
# service iptables restart
Access the SVN Repository from the URL
http://<machine-IP>/repo1/
No comments:
Post a Comment