문서의 이전 판입니다!
# apt-get install subversion subversion-tools libapache2-svn apache2.2-common python python-svn python-subversion
mkdir /home/svn chown www-data:www-data /home/svn/ chmod 750 /home/svn/
a2enmod dav_svn
a2enmod authz_user
<Location /svn> DAV svn SVNParentPath /home/svn AuthType Basic AuthName "Adminischool.net Subversion Repository" AuthUserFile /etc/apache2/dav_svn.passwd <LimitExcept GET PROPFIND OPTIONS REPORT> Require valid-user </LimitExcept> </Location>
htpasswd -c /etc/apache2/dav_svn.passwd starlits
기존 사용자가 존재할 경우에는 append 해야 하므로 -c 옵션이 넣으면 안된다.(사용자가 svnuser일 경우)
htpasswd /etc/apache2/dav_svn.passwd svnuser
/etc/init.d/apache2 restart
# mkdir -p /opt/svn # cd /opt/svn/ # svnadmin create --fs-type fsfs projectname
# cd /opt/svn/projectname/conf # vi svnserve.conf [general] anon-access = none auth-access = write password-db = passwd realm = ProjectName Repository # vi passwd [users] USER_ID = PASSWORD
# svnserve -d --root /opt/svn
# vi .bashrc export SVN_EDITOR=vim
# svn info | grep ^URL # svn switch --relocate OLD_URL NEW_URL