Tag : svn-amazon

Setup your own svn server on amazon for free

In this tutorial I will guide you regarding how to setup your own SVN server on amazon EC2 instance with Centos6.X

 

 

 

 

What is SVN ?

SVN is the abbreviated name of Apache’s subversion. svn is used to version control and revision your code. its open source and available for download under apache license.

 

Amazon gives t1.micro instance free for 1 year once you sign up on their site.

 

Lets get started :)

 

1. Launch free tier t1.micro EC2 instance from aws.

 

Note – If you are not sure how to launch EC2 instance on aws then please click here

 

 

2. Install SVN package and dav module using below command

yum install mod_dav_svn subversion

Note – Above command will install apache if its not already there

 

 

3. Configure SVN – Please replace your /etc/httpd/conf.d/subversion.conf file with below contents

 

LoadModule dav_svn_module     modules/mod_dav_svn.so
LoadModule authz_svn_module   modules/mod_authz_svn.so
<Location /svn>
   DAV svn
   SVNParentPath /var/www/html/svn
   AuthType Basic
   AuthName "Subversion User Authentication "
   AuthUserFile /etc/svn-users
   Require valid-user
</Location>

 

 

4. Create your first SVN repository

 

cd /var/www/html/svn
svnadmin create myfirstrepo
chown -R apache.apache myfirstrepo

 

 

5. Create users for your SVN repository

 

htpasswd -cm /etc/svn-auth-users crazyadmins

 

 

6. Restart apache service

service httpd restart

 

 

7. Point your browser to below URL in order to access newly setup SVN

 

http://public_ip_of_your_ec2_instance/svn/myfirstrepo/
OR
http://public_dns_of_your_ec2_instance/svn/myfirstrepo/

Note – Please use the login credentials you have set in step number 5

facebooktwittergoogle_plusredditpinterestlinkedinmailby feather