Hanya Sebagai Pengingat

=================================

Rabu, 17 Agustus 2011

SVN

SVN tanpa server
Setup a Subversion Server in 4 Minutes
You are going to need to type fast but I think you can do it in 4 minutes. :) These are my notes on what worked for me on my Fedora core 6 with svn lib already installed by the package manager:
1. Create a Repository

svnadmin create /svnrepos

2. Create a SVN User

vi /svnrepos/conf/svnserve.conf

In that file add these three lines:

anon-access = none
auth-access = write
password-db = passwd

Create a password file:

vi /svnrepos/conf/passwd

In that file add a line for your user:

# add users in the format : user = password
tony = mypassword

3. Import Your Project

(assuming you’ve put your project files in /projects/myrailsproject)

svn import /projects/myrailsproject file:///svnrepos/myrailsproject

4. Start the SVN Server as Daemon

svnserve -d

Done! You should now have a svn server running with one project named myrailsproject.

Try checking it out of the repository:

svn co svn://192.168.0.2/svnrepos/myyrailsproject

Since we set anon-access to none you should be prompted for username and password which you created in the file /svnrepos/conf/passwd.

sumber
http://www.tonyspencer.com/2007/03/02/setup-a-subversion-server-in-4-minutes/


Adapun langkah – langkah untuk menginstall subversion server :
1# Install modul subversion kita langsung ambil dari repostory di internet, kalau server anda tidak terkoneksi dengan internet silahkan download packetnya terlebih dahulu di : http://subversion.tigris.org/
$ sudo apt-get install subversion libapache2-svn
2# Setelah proses instalasi selesai sekarang kita bisa membuat contoh project Repository, disini saya akan membuat Repository project di /svn lokasi terserah anda bisa juga di /home/user/svn
$ Sudo svnadmin create /svn
3# Selanjutnya lakukan konfigurasi di /etc/apache2/mods-available/dav_svn.conf
$ sudo gedit /etc/apache2/mods-enabled/dav_svn.conf
4# Contoh konfigurasi untuk lokasi project /svn (letakan pada bagia bawah)
—————————

DAV svn
SVNPath /svn
AuthType Basic
AuthName “zmoerf”
AuthUserFile /etc/apache2/dav_svn.passwd
Require valid-user

————————-
5# Buat user dengan nama “zmoerf” untuk akses svn di Http://server/svn/
$ sudo htpasswd2 -cm /etc/apache2/dav_svn.passwd zmoerf
chown -R www-data:www-data /svn/*
chmod -R 774 /svn/*

Jika “ htpasswd2” tidak ada gunakan “htpasswd”
6# Restart apahce
$ sudo /etc/init.d/apache2 restart
7# Akses svn di à http://server/svn/ (masukan user:pass yang dibuat tadi)

Tidak ada komentar: