Installation
yum install mod_dav_svn subversion
service httpd start/restart
chkconfig httpd on
Configure
Open Terminal
cd /etc/httpd/conf.d/
vi subversion.conf
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 the following to allow a basic authentication and point Apache to where the actual repository resides.
DAV svn
SVNPath /var/www/svn/repos
AuthType Basic
AuthName "Subversion repos"
AuthUserFile /etc/svn-auth-conf
Require valid-user
Create/Configure repository
path which you have configured in subversion.conf file.
cd /var/www/svn/
svnadmin create repos
chown -R apache.apache repos
/etc/init.d/httpd restart
For Import
svn import /test/temp file:///var/www/svn/repos/temp -m "description"
For Delete
svn delete -m --F http://192.168.1.1/svn/repos/temp/
Creat User
htpasswd -cm /etc/svn-auth-conf username
Adding password for user yourusername
htpasswd -m /etc/svn-auth-conf anotherusername
subversion,svn,svn server,svn server on cent os,svn server on redhat,subversion on centos,subversion on redhat,install subversion on redhat,install subversion on centos
yum install mod_dav_svn subversion
service httpd start/restart
chkconfig httpd on
Configure
Open Terminal
cd /etc/httpd/conf.d/
vi subversion.conf
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 the following to allow a basic authentication and point Apache to where the actual repository resides.
DAV svn
SVNPath /var/www/svn/repos
AuthType Basic
AuthName "Subversion repos"
AuthUserFile /etc/svn-auth-conf
Require valid-user
Create/Configure repository
path which you have configured in subversion.conf file.
cd /var/www/svn/
svnadmin create repos
chown -R apache.apache repos
/etc/init.d/httpd restart
For Import
svn import /test/temp file:///var/www/svn/repos/temp -m "description"
For Delete
svn delete -m --F http://192.168.1.1/svn/repos/temp/
Creat User
htpasswd -cm /etc/svn-auth-conf username
Adding password for user yourusername
htpasswd -m /etc/svn-auth-conf anotherusername
No comments:
Post a Comment