Friday, April 1, 2016

Install SVN (Subversion) Fedora 18/17, CentOS/Red Hat

Install SVN (Subversion)  Fedora 18/17, CentOS/Red Hat 
i) Requirementsi. apache server
install apache server in fedors systems --yum install httpd

start the apache servers command in linux : service httpd
start/restart (or) /usr/sbin/apachectl start/restart
ii) install in subversionii) Svn “Subversion server”
install Subversion server in fedora systems : --yum install
mod_dav_svn subversion
not started in svn server the server based on the httpd/apache server
so u only start in apache server. svn is automatically running.
iii) Start the installation:1. Change the root user
su - (or) sudo -i
iv) install the need packages (mod_dav_svn subversion)yum install mod_dav_svn subversion
v) Modify the subversion config file /etc/httpd/conf.d/subversion.confAdded the the following lines.
LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_dav_svn.so

<Location /svn>
DAV svn
# Access Control via the authz module.
AuthzSVNAccessFile /etc/svn-access
------#-- u set the permission in these file /etc/svn-access followlink ------#http://csoft.net/docs/svndav.html.en
SVNparentpath /var/www/svn
AuthType Basic
AuthName “subversion repositories”
AuthUserFile /etc/svn-auth-users
Require valid-user
</Location>
vi) Added the Svn-Sub Usershtpasswd -cm /etc/svn-auth-users testuser(username in svn)

New password :
Re-Type New password:
htpasswd -cm /etc/svn-auth-users testuser
New password :
htpasswd -cm /etc/svn-auth-users testuser
New password :
Re-Type New password:
Adding the password for user testuser
vii) Create and Configure SVN Repositorymkdir /var/www/svn
cd /var/www/svn

svnadmin create testrepo
chown -R apache.apache testrepo
## If you have SELinux enabled (you can check it with "sestatus" command) ##
## then change SELinux security context with chcon command ##
chcon -R -t httpd_sys_content_t /var/www/svn/testrepo
## Following enables commits over http ##
chcon -R -t httpd_sys_rw_content_t /var/www/svn/testrepo
vii) Restart the Apache/etc/init.d/httpd restart
/etc/init.d/httpd start
service httpd restart the following the commands in your terminal
xi) Gotohttp://localhost/svn/testrepo now installing the svn
(using ip or http://localhost/svn/testrepo)
Successful installed subversion..

No comments:

Post a Comment