Implementing Subversion - CentOS
Note: Apache is a requirement in setting up the Subversion.
1. Installing subversion.
$ yum install mod_dav_svn subversion
2. Configuring subversion's apache.
$ nano /etc/httpd/conf.d/subversion.conf
Make sure that these are loaded:
# Make sure you uncomment the following if they are commented out
LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so
# Add this directive
<Location /repos>
DAV svn
SVNPath /var/www/svn/repos
AuthType Basic
AuthName "Subversion repos"
AuthUserFile /etc/svn-auth-conf
Require valid-user
</Location>
3. Create an SVN user.
$ htpasswd -cm /etc/svn-auth-conf svnuser
4. Configure the repository.
$ cd /var/www/ (or the default apache web folder)
$ mkdir svn
$ cd svn
$ svnadmin create repos
$ chown -R apache.apache repos
$ service httpd restart
5. Accessing the URL using a browser.
http://serversIPorDomain/repos or http://192.168.0.xxx/repos
ref : wiki centos
1. Installing subversion.
$ yum install mod_dav_svn subversion
2. Configuring subversion's apache.
$ nano /etc/httpd/conf.d/subversion.conf
Make sure that these are loaded:
# Make sure you uncomment the following if they are commented out
LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so
# Add this directive
<Location /repos>
DAV svn
SVNPath /var/www/svn/repos
AuthType Basic
AuthName "Subversion repos"
AuthUserFile /etc/svn-auth-conf
Require valid-user
</Location>
3. Create an SVN user.
$ htpasswd -cm /etc/svn-auth-conf svnuser
4. Configure the repository.
$ cd /var/www/ (or the default apache web folder)
$ mkdir svn
$ cd svn
$ svnadmin create repos
$ chown -R apache.apache repos
$ service httpd restart
5. Accessing the URL using a browser.
http://serversIPorDomain/repos or http://192.168.0.xxx/repos
ref : wiki centos
Comments
Post a Comment