• 필요한 파일들
    - Subversion소스 파일.
    - Subversion 의존성 파일.
    - Berkeley DB(4.3.29 설치).
    - OpenSSL.
    - Apache(httpd-2.0.59 버전으로 설치함)
  • 디렉토리 정보
    - 다운 로드 디렉토리 : /home/k2/data/.
    - 설치 디렉토리 : /home/k2/server.
  • 운영 환경 .
    - Linux(OS:AS300)
    - 설치시 계정은 ROOT가 아닌 일반 이용자 계정으로 설치하는 것을 원칙으로 함.
  • OpenSSL 파일 설치하기
    - cd /home/k2/data/
    - tar -xvzf openssl-0.9.8e.tar.gz
    - cd openssl-0.9.8e
    - ./configure -prefix=/home/k2/server/openssl-0.9.8e;make;make install
    - 특이사항 : configure 실행시 특정 디렉토리에 설치를 원하면 -prefix를 준다. 위에서 /home/k2/server/openssl-0.9.8e로 준다.
  • Berkeley DB 설치(ROOT 계정으로 설치)
    - cd /home/k2/data/
    - tar -xvzf db-4.3.29.tar.gz
    - cd db-4.3.29
    - ../dist/configure;make;make install
    - echo "/usr/local/BerkeleyDB.4.3/lib" >> /etc/ld.so.conf
    - ldconfig
  • Apache 설치
    - Apache가 있을 경우 재설치함
    - cd /home/k2/data/httpd-2.0.59
    - vi configure.sh
    ./configure --prefix=/home/k2/server/httpd-2.0.59 \
    --enable-nonportable-atomics=yes \
    --enable-headers \
    --enable-vhost-alias \
    --with-mpm=prefork \
    --enable-rewrite \
    --enable-expires \
    --enable-so \
    --enable-suexec \
    --with-suexec-caller=bin \
    --enable-ssl \
    --with-ssl=/home/k2/server/openssl-0.9.8e \
    --enable-cache \
    --enable-ext-filter \
    --with-z=/usr/include \
    --enable-dav \
    --with-dbm=db4 \
    --with-berkeley-db=/usr/local/BerkeleyDB.4.3
    - ./configure.sh;make;make install
  • Subversion 설치
    - cd /home/k2/data
    - tar -xvzf subversion-1.4.3.tar.gz
    - tar -xvzf subversion-deps-1.4.3.tar.gz
    - cd subversion-1.4.3
    - vi configure.sh
    ./configure \
    --prefix=/home/k2/server/subversion-1.4.3 \
    --with-zlib \
    --with-apxs=/home/k2/server/httpd-2.0.59/bin/apxs \
    --with-apr=/home/k2/server/httpd-2.0.59/bin/apr-config \
    --with-apr-util=/home/k2/server/httpd-2.0.59/bin/apu-config \
    --with-berkeley-db=/usr/local/BerkeleyDB.4.3
    - 주의 사항 --with-apr, --with-apr-util을 지정해 주어야 Berkeley DB나 혹은 APT-UTIL라이브러리 구버젼 오류가 나지 않음.
    - ./configure.sh;make;make install
  • 소스 저장소 만들기(ROOT 계정)
    - mkdir /home/svn
    - cd /home/cvs
    - svnadmin create --fs-type bdb sample
    - chmod -R k2.KPCT sample(Apache에서 접근 가능하도록 Apache의 계정,그룹을 접근 가능하게 해줌)
  • Apache 설정
    - cd /home/k2/server/httpd-2.0.59/conf
    - vi httpd.conf
    - subversion 설치되면서 아래 설정이 추가됨
    LoadModule dav_svn_module     modules/mod_dav_svn.so
    LoadModule authz_svn_module   modules/mod_authz_svn.so
    - 아래 내용 conf파일 맨끝에 저장
    <Location /svn/sample>
        DAV svn
        SVNPath /home/svn/sample
        AuthType Basic
        AuthName "Mimul's Repository"
        AuthUserFile /home/k2/server/httpd-2.0.59/conf/passwd
        Require valid-user
    </Location>
    - ../bin/htpasswd -c passwd mimuluser 엔터
    - New Password : 입력
    - Re-type new password : 입력
    - http://www.mimul.com/svn/sample 엔터 후 아이디와 패스워드 인증을 통해 접근하면 아래와 같은 메세지 나옴
    Revision 0:/
  • 에디터 지정(svn 커맨드 사용을 위해서)
    SVN_EDITOR=/usr/bin/vim
    export SVN_EDITOR
  • 기본 디렉토리 만들기
    - svn mkdir http://www.mimul.com/svn/sample/trunk 엔터 후 다음과 같은 화면 나타남.
    --This line, and those below, will be ignored--
    A    http://www.mimul.com/svn/sample/trunk
    - :q! 빠져 나옴
    - c를 누른다음 사용자 계정 인증하게 되면 Committed revision 1. 이라는 메세지와 함께 디렉토리가 만들어 짐.
    - branches, tags 디렉토리도 같은 방법으로 생성함.
    - svn list http://www.mimul.com/svn/sample 엔터
    branches/
    tags/
    trunk/

'오픈소스SW' 카테고리의 다른 글

웹 기반의 무료 Visio 툴  (0) 2008.12.26
Web-Based WYSIWYG editor 비교  (0) 2008.12.26
James Server 활용  (0) 2008.12.26
Ajax기반의 Webmail 소개  (0) 2008.12.26
JSCalendar를 활용한 일자 조회  (0) 2008.12.26

+ Recent posts