You are hereSetting Up Subversion with Ubuntu 6.06

Setting Up Subversion with Ubuntu 6.06


By steve - Posted on 18 September 2006

It is so easy, but so... not.

The packages are already built, so you just have to know what to install. I was able to get subversion running as a server, but had difficulty finding the apache module. Here's what I did...


# apt-get install apache2 subversion libapache2-svn

Create a main repository folder and give apache user control:
# mkdir /var/svn
# svnadmin create /var/svn/myrepository
# chown -R www-data:www-data /var/svn

Configure apache 2 for general use, then setup your subversion stuff in apache and restart it:


# rm -f /etc/apache2/dev_svn.passwd
# htpasswd /etc/apache2/dav_svn.passwd yourusername
New password:
Re-type new password:
Adding password for user yourusername
# nano /etc/apache2/mods-enabled/dav_svn.conf

<Location /svn/myrepository>
     DAV svn
     # point to your actual respository created above
     SVNPath /var/svn/myrepository
     AuthType Basic
     AuthName "Subversion Repository"
     AuthUserFile /etc/apache2/dav_svn.passwd
     Require valid-user
</Location>

# /etc/init.d/apache2 reload

Tags

Did this help you? You can help me!


Did you find this information helpful? You can help me back by linking to this page, purchasing from my sponsors, or posting a comment!


+One me on Google:


Follow me on twitter: http://twitter.com/mojocode







Comments



Affiliation Badges