How to create SVN repository on server?

subversion info

$yum install subversion

$/etc/init.d/svn start


  1. Create a Repository:svnadmin create /svnrepos
  2. Create a SVN Uservi /svnrepos/conf/svnserve.conf

    anon-access = none

    auth-access = write

    password-db = passwd

    And add users in the format: user = password

    E.g.: 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 Daemonsvnserve -dDone! You should now have an Apache Subversion server running with one project named myrailsproject.Try checking it out of the repository:

    svn co svn://

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

Leave a comment