sudo yum install subversion mod_dav_svnCreate the directory svn
mkdir /var/www/svn
svnadmin create myrepo
chown -R apache.apache myrepoEdit subversion configuration file
vi /etc/httpd/conf.d/subversion.confAdd these line
LoadModule dav_svn_module modules/mod_dav_svn.so LoadModule authz_svn_module modules/mod_authz_svn.so < Location /svn > DAV svn SVNPath /var/www/svn AuthType Basic AuthName "Subversion repositories" AuthUserFile /etc/svn-auth-users Require valid-user < /Location >Adding new user
sudo htpasswd -cm /etc/svn-auth-users username
New password: Re-type new password: Adding password for user new_userRestart your server
sudo service httpd restartFinally, access your svn url:
http://ip-address/svn/myrepo
No comments:
Post a Comment