Step 6 – Setup basic security for your repository If your svnadmin command did not fire, then try rebooting your system to ensure that the new path has been loaded successfully. If the commands complete successfully, your folder structure should now look like this: Open a command prompt and type the following commands:
Now assuming that your path is configured properly and the update is active, you should be able to create your first test repository. Your path to your Subversion repositories would then be C:\svnrepos Step 5- Create a test repository For this guide, we’ll assume you’re creating a folder called SVNRepos on your C: drive. You should create your repositories on a large partition if you plan to maintain multiple large projects for a long period of time. Step 4- Create a path for your repositories Next, create a new variable called SVN_EDITOR and set it to c:\winnt\notepad.exe (or wherever your notepad.exe file resides) In this instance, you’ll add: c:\subversion\bin
To make your life a little easier, add the path to your Subversion bin folder to your system PATH variable. Step 3 - Set PATH and SVN_EDITOR system variables I use the binary package rather than the self-installer, which I've included in the download package.Make sure you’re downloading the version compiled for Apache 2.2 Step 2 - Unzip the package you downloaded and place in c:\subversion (or any path that you prefer)
If you'd like to download all of the software packages I use in this guide, you can download a single ZIP file here. NOTE: Some of the download links referenced in this guide are now dead. Step 1 – Download the correct Subversion package for Apache 2.2 VMWare allows you to take snapshots of your system after steps 9, 20 and 25 the snapshots allow you to easily roll back to the last good working machine state should you encounter problems during any steps. I also recommend practicing this tutorial on a virtual machine that allows you to take snapshots, such as VMWare. I used Windows 2000 Server in this tutorial, but I recommend Windows 2003 Server for a production setup. But setting up HTTPS access and web-based repository viewing via WebSVN can be tricky on Windows, so I’ve documented the steps I use to setup Subversion 1.4 + Apache 2.2 + WebSVN 2.0 on Windows. Subversion runs equally well on Windows and Unix, and it also works over HTTP & HTTPS, which is great if your development team works offsite. Subversion is an easy to learn and use version control system that suits our needs almost perfectly.
It's imperative that we have a reliable source code control system that allows a team of developers, often working from different physical locations, to work together on a single project. We develop websites and online applications for banks, credit unions, eCommerce sites and corporate credit unions using the MemberProtect security framework for ASP.NET.
How to Setup Subversion + Apache + WebSVN on Windows