1:°²×°¡±apache2¡åºÍ¡±subversion¡±
apt-get install libapache2-svn apache2 subversion
2:½¨Á¢subversionºÍר°¸µÄµµ°¸¿â
mkdir /home/svn
mkdir /home/svn/foo
svnadmin create /home/svn/foo
3:¸ü¸Ä¸ÃĿ¼µÄÓµÓÐÕßΪÍøÒ³¶ÁÈ¡Õß
chown -R www-data.www-data /home/svn/foo
4:ÐÞ¸ÄapacheµÄsvnÉ趨µµ£º/etc/apache2/mods-available/dav_svn.conf
DAV svn
SVNParentPath /home/svn
AuthType Basic
AuthName ¡°Subversion Repository¡±
AuthUserFile /etc/apache2/dav_svn.passwd
AuthzSVNAccessFile /etc/apache2/dav_svn.authz
Require valid-user
5:É趨ʹÓÃÈ˵ÄȨÏÞ£ºÐÞ¸Ä/etc/apache2/dev_svn.authz
[foo:/]
project_leader = r
project_coder = rw
6:Ôö¼ÓapacheÁ¬Ïß½øÀ´µÄʹÓÃÕßÕʺŵ½/etc/apache2/dev_svn.passwd
/usr/bin/htpasswd -c /etc/apache2/dev_svn.passwd project_leader
/usr/bin/htpasswd -c /etc/apache2/dev_svn.passwd project_coder
7:ÖØÐÂÆô¶¯apache
/etc/init.d/apache2 restart
8:Ö´ÐÐsvn co http://localhost/svn/foo¾ÍÄÜ×¥µ½×¨°¸µÄ×ÊÁÏÁË¡£