Installing and Configuring A Subversion(SVN) Server on Win2003

This is written as a reminder, how SVN was installed on a Windows Server 2003 using IIS6 and Adobe ColdFusion.

Download the SVNServer1ClickSetup.exe file.

Run the file to start the installation. The SVNRepos

directory will store all of the Subversion Repositories. There is no need to create a repository or a project, so you should Skip those steps.

It is okay and recommended that you install TortoiseSVN which is part of the installation process.

Once installed, browse to the SVNRepos directory, and create folders for your respositories. It is recommended you create a separate respository for each site in your webroot, because each site will have separate revision numbers then. If two or more sites are imported into a single responsitory, they share revision numbers which makes it confusing.

I will use a helloworld site as an example.

Create a Helloworld folder in SVNRepos. Then right click and go to the TortoiseSVN menu, select Create Repository Here. Now your repository exists. Time to put your site into it.

You will need to reorganize your Helloworld site. It consists of 3 folders and 1 file like: cfcs, images, temp, and index.cfm. You will need to add three folders to the Helloworld folder. The first is "trunk" (all lowercase). When truck is created, cut and paste everything else into trunk, so only trunk is left. Then create two more folders called "tags" and "branches." Now you're ready to import the Helloworld site into SVN.

Browse on your server to the SVNRepos directory, and right click on your Helloworld repository folder. Select TortoiseSVN>Import. It will ask for the URL to your repository. Enter svn://[servername]:3690/Helloworld. (Port 3690 is the default port for SVNServe). In the Log Message, type "Initial Trunk Import" so that it logs this action.

Repeat this process for each of your sites.

When you have imported all of the sites from the webroot, you'll want to rename the webroot folder, like add "_backup" to it, and then create a new webroot folder. You will checkout sites from the repository, in order to download the code back into your webroot. Once they are in place, they will work like before, only to update the code, you simply do an SVNUpdate.

You will also checkout the code for local development on your notebook. The related blog entry below explains that process.

Check out How to Configure Eclipse to Work with Subversion Using Subclipse to setup your development environment.

Comments
dickbob's Gravatar Followed your instructions and they all worked fine for me. One issue though is that remote machines can't create folders etc onto the remote SVN server (Authorization failed). Is there some security on SVN that I have to enable or a Windows security setting to make?
# Posted By dickbob | 9/24/07 11:07 AM
dickbob's Gravatar To answer my own question, care of Google...

http://svn.haxx.se/users/archive-2006-03/0746.shtm...

"Look at the conf/svnserve.conf file in your repository, it defaults to allowing only read-only access, to get write access you'll either need to turn on anonymous writes, like this:

[general]
anon-access = write

Or you'll have to configure a password database, as described in the file's comments."
# Posted By dickbob | 9/24/07 11:29 AM
Ian's Gravatar Thanks for posting this. I am finally going to try and start using Eclipse now that I have some kind of version control working.
# Posted By Ian | 9/29/07 7:36 PM
Copyright ©2007 JimPickering.com. Some rights reserved. BlogCFC was created by Raymond Camden. This blog is running version 5.1.004.