Apache Subversion (often abbreviated SVN, after the command
name svn) is a software versioning and revision control system distributed
under an open source license. Developers use Subversion to maintain current and
historical versions of files such as source code, web pages, and documentation.
Install Subversion on Ubuntu 12.04
#Run the following cmd
sudo apt-get install subversion libapache2-svn
# Create the subversion repository in a location ( we're going to pick /svn )
sudo svnadmin create /svn
# Edit the configuration file for the subversion webdav module. You can use whichever editor you like.
# Comment out the <Location /svn> line. It specifies the root directory where subversion will be accessible from, for instance:
http://www.server.com/svn. Also comment out the 'Dav svn' line to enable the repository.
# Set the SVNPath line to the same directory you created the repository with the svnadmin command.
# Comment out the following 3 lines to enable Basic Authentication
AuthName “Subversion Repository”
# Create a user on the repository use, the following command:
sudo htpasswd -cm /etc/apache2/dav_svn.passwd <username>
Please note that you should only use the -c option the FIRST time that you
create a user. After that use the -m option, which
specifies MD5 encryption of the password, but doesn’t recreate the
sudo /etc/init.d/apache2 restart
# Go to http://IPAddress/svn in your browser
# If you want to enable authentication for all users, comment out the AuthUserFile line in the conf file.
Restart apache after changing this line.
# If you refresh it again in your browser, you will be prompted for user credentials.