Tutorials and How-tos/Install Subversion with Apache

From BubbaWiki
Jump to navigation Jump to search

How to install Subversion (SVN) with Apache on your Bubba server

Using Apache instead of svnserve give you some benefits like being able to see your repo in your browser.

Basic set-up

Most people have their Bubba server connected on a private network and don't need much security protocols, so I'll start with an easy set up.


Log in to your Bubba server using SSH (On Windows use PuTTY and on Mac & Linux open a terminal and write ssh). Gain root access (Linux talk for admin rights) with default password excito.
su

Change directory to /
cd /

First we need to install the actual SVN software from the repository.
We will use the default repository and install the version available there 1.5.1

apt-get install subversion
apt-get install libapache2-svn

mkdir /var/svn
chown -R www-data:www-data /var/svn

nano /etc/apache2/mods-available/dav_svn.conf
cat /etc/apache2/mods-available/dav_svn.conf

/etc/init.d/apache2 restart
first user
htpasswd -cm /etc/apache2/dav_svn.passwd user1
next user
htpasswd -m /etc/apache2/dav_svn.passwd user2

svnadmin create /var/svn/test
chown -R www-data:www-data /var/svn/test