Introduction:
Subversion SVN Server most widely used software version and revision control open source software, used by developer to maintain historical data as source code and file.
Software Dependencies:
Apache, Subversion, mod_dav_svn and mod_ssl
Installation:
[root@localhost ~]# yum install httpd subversion mod_dav_svn mod_ssl -y
Prerequisites:
Make directory where do you want to put your svn repository files according to your projects for me here I am taking two example to understand better way as project1 and project2
// Creating folder to keeps repositories
[root@localhost ~]# mkdir -p /storage/svn/repos //to keep repos into folder
[root@localhost ~]# chown -R apache.apache /storage/svn/repos //to make it accessible
//Adding repositories into folder
[root@localhost ~]# svnadmin create /storage/svn/repos/project1 //adding repository 1
[root@localhost ~]# svnadmin create /storage/svn/reposproject2 //adding repository 2
// Creating folder to keep additional configuration files
[root@localhost ~]#mkdir -p /storage/svn/etc // to maintained svn users password according to projects
//Add users to access repository
[root@localhost ~]# htpasswd -c /storage/svn/etc/project1 user1
New password:
Re-type new password:
Adding password for user1
[root@localhost ~]# htpasswd -c /storage/svn/etc/project2 user2
New password:
Re-type new password:
Adding password for user2
Note: if you want add more users -> “htpasswd -m file-referance-path username”
if you want delete more users -> “htpasswd -D file-referance-path username”
Main Configuration:
Now to Time to make changes in subversion.conf, placed in /etc/httpd/conf.d/ directory
Please add following lines at end of file
//Configuration for project1 repository
<Location /storage/svn/repos/project1>
DAV svn
SVNPath /storage/svn/repos/project1 //repo path
AuthType Basic
AuthName “This is test protect1 Repos” // login message
AuthUserFile /storage/svn/repos/etc/project1 // valid users reference file path
Require valid-user
</Location>
//Configuration for project2 repository
<Location /storage/svn/repos/project2>
DAV svn
SVNPath /storage/svn/repos/project2 //repo path
AuthType Basic
AuthName “This is test protect2 Repos” // login message
AuthUserFile /storage/svn/repos/etc/project2 // valid users reference file path
Require valid-user
</Location>
Restart Services:
[root@localhost ~]#/etc/init.d/svnserve start
[root@localhost ~]#chkconfig svnserve on
[root@localhost ~]#/etc/init.d/httpd start
[root@localhost ~]#chkconfig httpd on
IPTABLE Configuration:
[root@localhost ~]#iptables -N SVN
[root@localhost ~]#iptables -I INPUT 4 -j SVN
[root@localhost ~]#iptables -I SVN -s 0.0.0.0/0 -p tcp –dport 80 -j ACCEPT
[root@localhost ~]#iptables -I SVN -s 0.0.0.0/0 -p tcp –dport 443 -j ACCEPT
[root@localhost ~]#service iptables save
SVN repo Access Path:
https://x.x.x.x/storage/svn/repos/project1
https://x.x.x.x/storage/svn/repos/project1
Windows Client to access SVN Server:
On Windows machine you may download http://tortoisesvn.net/downloads.html client as per your OS.
Enjoy !
Different remedies existing from the Web to why to waste period and visit dispensary if you can easily purchase medications sit at home. There are numerous of legal online drugstores that will deliver remedies to your home. If you are considering Cialis, you probably want to study more about Cialis. (See also Amoxicillin Over the Counter). This website provides you with some useful data on the benefits of remedies and how they are evaluated for safeness. Generally, both men and women are afflicted by sexual disorders. Often, when folk think about Cialis, they mean Generic Amoxil Amoxicillin. The very momentous problem you must look for is Cialis. (Read more Other Forms of Metronidazole). Finally, such kind of difficulties can be an early warning symptom of serious health problems, such as core disease. Finally ordering remedies online can save money, but keep these tips in mind.
Leave a Reply
You must be logged in to post a comment.