[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Moving FreeBSD to a new server

From: Paul Klepac <pklepac_at_io-informatics.com>
Date: Fri, 6 Feb 2009 15:56:15 -0800



   I'm new to UNIX but I've been given the task of moving our existing

to a new server. Basically what is going on is that our existing

server is starting to have some disk problems and so we want to build a
new server

(install FreeBSD, Apache, and SVN) and move the Berkeley Database.


  So as I understand it, I need to install:

* FreeBSD OS: 7.1-RELEASE-i386-disc1.iso

* Apache version 2.2.x : httpd-2.2.11.tar.gz

o Double-click on the Apache2 installer

o Test the installation: http://localhost/ (a preconfigured website
should appear)

* Subversion (this is the part I'm not sure about)

o Go to http://www.freebsd.org/cgi/cvsweb.cgi/ports/devel/subversion/

Click on "Download this directory in tarball
.tar.gz?tarball=1> "

o Which will download subversion.tar.gz & un-tar the files

# tar xvfz subversion.tar.gz

o cd /usr/ports/devel/subversion;

o make install

This will install Subversion & create the BDB

o find the files /httpd/mod_dav_svn.so and mod_authz_svn.so.

Copy these files to the Apache modules directory

o Copy the file /bin/libdb*.dll and /bin/intl3_svn.dll from the
Subversion installation directory to the Apache bin directory.

o Edit Apache's configuration file ( e.g., \Apache
Group\Apache2\conf\httpd.conf) with a text editor

and make the following changes:

Uncomment (remove the '#' mark) the following lines:

#LoadModule dav_fs_module modules/mod_dav_fs.so

#LoadModule dav_module modules/mod_dav.so

Add the following two lines to the end of the LoadModule section.

LoadModule dav_svn_module modules/mod_dav_svn.so

LoadModule authz_svn_module modules/mod_authz_svn.so

o At the end of the config file add the following lines:

1. <Location /svn>
  DAV svn
  SVNListParentPath on
  SVNParentPath D:\SVN
  #SVNIndexXSLT "/svnindex.xsl"
  AuthType Basic
  AuthName "Subversion repositories"
  AuthUserFile passwd
  #AuthzSVNAccessFile svnaccessfile
  Require valid-user

This configures Apache so that all your Subversion repositories are
physically located below D:\SVN. The repositories are served to the
outside world from the URL: http://MyServer/svn/ . Access is restricted
to known users/passwords listed in the passwd file.

2. Create the passwd file, open the command prompt again, change
to the apache2 folder (e.g., .../apache group/apache2) and create the
file by entering

Bin/htpasswd -c passwd <username>

This will create a file with the name passwd which is used for
authentication. Additional users can be added with

Bin/htpasswd passwd <username>

3. Restart the Apache service again.

4. Point browser to http://MyServer/svn/MyNewRepository (where
MyNewRepository is the name of the Subversion repository you created
before). If all went well you should be prompted for a username and
password, then you can see the contents of your repository.

Haven't not installed it yet (still waiting for the server to arrive
from Dell), I've taken some liberty with guessing what the commands are;
so if I'm wrong, please, correct me.


Can I just copy the database repository directory from the Old SVN
server to the new one and it'll all work?


Thanks in Advance,



To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-02-07 00:58:08 CET

This is an archived mail posted to the Subversion Users mailing list.