I will take you through on how to install subversion with web access using apache module, which can be achieved through simple steps.
Installing subversion
sudo apt-get install subversion libapache2-svn
Creating repository
sudo svnadmin create /svnrepo
Editing web module configuration
I have used gedit for editing. You can use any editor of your choice
sudo gedit /etc/apache2/mods-enabled/dav_svn.conf
The Element in the configuration file indicates the root directory where the subversion will be accessible from. For example, if you are accessing the subversion as http://localhost/svn, the Location element will look like this.
<Location /svn>
Uncomment the DAV line to enable webdav module
# Uncomment this to enable the repository,DAV svn
Set the SVNPath line to the repository directory which you created in the beginning.
SVNPath /svnrepo
The next section is the Authentication to access subversion. This is just a basic authentication, so it is not considered to be very secure. Uncomment the following lines and leave it unchanged.
# Uncomment the following 3 lines to enable Basic AuthenticationAuthType BasicAuthName "Subversion Repository"AuthUserFile /etc/apache2/dav_svn.passwd
Create Users
c – creates new user.
m – md5 encryption
sudo htpasswd -cm /etc/apache2/dav_svn.passwdNew password:Re-type new password:Adding password for user
Adding permissions to repository
sudo chown -R www-data:www-data /svnrepo
Restart Apache
To reflect the changes made, restart the apache sever using the following command.
sudo /etc/init.d/apache2 restart
Access the url
Now access the url, you must be now able to browse the subversion repository.
http://localhost/svn