Tuesday, March 11, 2014

Installing Subversion on Server Centos

Install the package
sudo yum install subversion mod_dav_svn
Create the directory svn
mkdir /var/www/svn
svnadmin create myrepo
chown -R apache.apache myrepo
Edit subversion configuration file
vi /etc/httpd/conf.d/subversion.conf
Add 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_user
Restart your server
sudo service httpd restart
Finally, access your svn url:
http://ip-address/svn/myrepo

No comments:

Post a Comment