Dec 25, 2010

setup subversion on Debian/Ubuntu

清理目录时,发现很久前为我妹演示svn的工作机制时,写的怎么搭建subversion服务.

1. install software
$ sudo apt-get install subversion libapache2-svn

2.
$ sudo svnadmin create /home/svn
$ sudo chown -R www-data:www-data /home/svn

3. configure
$ sudo vim /etc/apache2/mods-enabled/dav_svn.conf
uncomment

DAV svn
SVNPath /home/svn
AuthType Basic
AuthName "Subversion Repository"
AuthUserFile /etc/apache2/dav_svn.passwd


4. create password file
$ sudo htpasswd2 -cm /etc/apache2/dav_svn.passwd
$ sudo htpasswd2 -m /etc/apache2/dav_svn.passwd

5. reload apache2
$ sudo /etc/init.d/apache2 reload

No comments:

Post a Comment

您的评论将使我blog更有动力~