• Quotes
  • Index
  • About
AOssama.NET Technical Notes

Tag Archives: Subversion

Subversion on CentOS (Part 1)

May 12, 2011 10:25 am / Leave a Comment / Ahmed

Subversion isn’t only for coders or developers, I have been using it for few years to track the changes on my configuration files, make a central repository for a group of servers. This quick how-to explains how to install and do basic configuration of subversion across Apache on a network.

The first thing to do is to install the required packages…
# yum install httpd mod_dav_svn subversion

Generally the package shipped with CentOS works with the default configuration so I am not going to go deep into apache’s configuration, just make sure apache is running and it works with the system startup…
# service httpd start
# chkconfig httpd on

You could also check if svn module is loaded into apache or not (mine was loaded automatically after installing the package)
# apachectl -M | grep svn

Then we configure the repository (repo for short)
# mkdir /var/svn && cd /var/svn/
# svnadmin create project1
# chown -R apache.apache /var/svn/


The next step is to setup some settings within Apache so Subversion and Apache play nice together.
# vim /etc/httpd/conf.d/subversion.conf

The basic configuration of apache to serve an svn repo is like:


DAV svn
SVNParentPath /var/svn

After that, restart apache, and browse to your repo…
# service httpd restart

Go to http://my.server.hosting.svn/svn/project1

and you should get the version 0 page of your repo

To be continued…

Posted in: Apache, Linux / Tagged: apache subversion, subversion, svn

Categories

  • Apache (1)
  • Asterisk (2)
  • bind9 (1)
  • FreeBSD (9)
  • iSCSI (2)
  • Linux (12)
  • Netcat (1)
  • Networking (3)
  • Penetration Testing (1)
  • PHP (2)
  • Squid (2)

Archives

  • January 2013 (1)
  • April 2012 (3)
  • May 2011 (1)
  • January 2011 (1)
  • September 2010 (1)
  • August 2010 (1)
  • June 2010 (3)
  • May 2010 (1)
  • November 2009 (2)
  • October 2009 (9)
  • September 2009 (2)

Meta

  • Register
  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org
© Copyright 2013 - AOssama.NET
Infinity Theme by DesignCoral / WordPress