You are at luck mate. I did the same thing yesterday on CentOS 5.2. What are
the odds? :)

1. Install Subversion :
*yum install subversion
*
2. Create subversion repository :
*    svnadmin create /var/svn/t5-tutorial
*
3. import existing codebase :
*svn import codeBaseDirectory file:///var/svn/t5-tutorial -m "T5, Spring,
iBatis, 3tier example app."
*
4. For http access -> install mod_dav_svn
*yum install mod_dav_svn.i386*

5. Let apache load the module, by editing the configuration
*vim /etc/httpd/conf/httpd.conf
*

LoadModule dav_module         modules/mod_dav.so
LoadModule dav_svn_module     modules/mod_dav_svn.so

<Location /svn>
  DAV svn
  SVNParentPath /var/svn

  AuthType Basic
  AuthName "Subversion repository"
  AuthUserFile /etc/svn-auth-file
  Require valid-user
</Location>

6. We have to create the user-auth-file i.e. for Basic authentication. ( you
even have digest and stuff - refer to the link above for more details).

$ ### First time: use -c to create the file
$ ### Use -m to use MD5 encryption of the password, which is more secure
$* htpasswd -cm /etc/svn-auth-file harry*
New password: *****
Re-type new password: *****
Adding password for user harry


$ *htpasswd -m /etc/svn-auth-file sally*
New password: *******
Re-type new password: *******
Adding password for user sally


7. Now the svn can be access here :
https://serverName/svn/<https://192.168.1.102/svn/>


Thats all mate. Have fun!


-- 
Cheers,
John


On Tue, Sep 30, 2008 at 3:32 AM, Sandeep Kumbhar
<[EMAIL PROTECTED]>wrote:

>   Hi All
>
> I want to know how to create a SVN Server for my company. We use CentOS 5.2
> as server. What is the requirement for the same?
>
> Regards
>
> Sandeep
>  

Reply via email to