Create Repository
# cd /home/svn
# sudo mkdir PROJECT_NAME
# sudo svnadmin create --fs-type fsfs PROJECT_NAME
Configuration Repository
# sudo vi /etc/apache2/mods-available/dav_svn.conf
------------------------------------------------
<Location /svn/PROJECT_NAME>
DAV svn
SVNPath /home/svn/PROJECT_NAME
AuthType Basic
AuthName "Project Repository"
AuthUserFile /etc/subversion/passwd
<LimitExcept GET PROPFIND OPTIONS REPORT>
<LimitExcept GET PROPFIND OPTIONS REPORT>
Require valid-user
</LimitExcept>
</Location>
------------------------------------------------
# sudo chown -R www-data:subversion PROJECT_NAME
# sudo chmod -R g+rws PROJECT_NAME
# sudo /etc/init.d/apache2 restart
Create User
# sudo htpasswd -c /etc/subversion/passwd account_name
# cat /etc/subversion/passwd
account_name:encrypted_passwd
htpasswd -c 옵션은 처음 계정을 생성할 때 사용한다. 이 옵션은 파일을 만들어 준다.# cat /etc/subversion/passwd
account_name:encrypted_passwd
두번째 계정부터는 옵션없어도된다.
Reference
'Server-Side > Linux' 카테고리의 다른 글
[crontab] /usr/bin/python^M: bad interpreter: No such file or directory (0) | 2011.08.22 |
---|---|
[CentOS] how to install mongodb in 64bit centos (0) | 2011.06.06 |
[Redmine] How to install redmine on ubuntu 10.04 (0) | 2011.01.11 |
[SVN] how to install subversion on CentOS5.X 64bit (0) | 2011.01.04 |
[ntp] Network Time Protocol 사용하기 (0) | 2010.12.21 |