well, it is very useful to have a subversion server so u can have different versions of your applications; for back up and to be able to restore old versions, and be able to share the project with the team, when there is more than one developer working on it.
1- install apache
sudo apt-get install apache2
2- install subversion
sudo apt-get install subversion libapache2-svn
3- We’re going to create the subversion repository in /svn
sudo svnadmin create /svn
4- Now we’ll need to edit the configuration file for the subversion webdav module
sudo gedit /etc/apache2/mods-enabled/dav_svn.conf
we will comment the following line, so we can access the repository using the address http://www.servername.com/svn
<Location /svn>
</Location>
and the following line to enable the dav module
DAV svn
and the following line to set the path to our repository which is /svn in our case
SVNPath /svn
and the following 3 lines to enable basic authentication
AuthType Basic AuthName "Subversion Repository" AuthUserFile /etc/apache2/dav_svn.passwd
5- We create a user to have access to our repository
sudo htpasswd -cm /etc/apache2/dav_svn.passwd
where is the desired login name
6- We restart the apache server
sudo /etc/init.d/apache2 restart
7- You can access now the repository using the address : http://www.servername.com/svn