Inner-Rhythm TV

Inner-Rhythm TV

SAT 04/08 - Attach Subversion to Apache on Windows

January 21, 2008 · 4 Comments

Lets now tie Subversion to Apache, allowing you to view your repository via the web browser and give you the ability have finer access control. You can have seperate users each of which can have different rights. If you haven't downloaded the Zip File then do so now, this Zip Contains all the files required to Install Apache, SVN & Trac. there is a Video to View [QuickTime | You Tube] You can increase the size of each of the images by clicking on them, so lets get started:

Open the expanded Folder from the downloaded zip file.
Open the CopyText.txt file
Highlight all of the file execpt for the last line.
Go to the Edit Menu and select copy.
Go to the conf folder of the apache install in this example: C:\Apps\Apache Software Foundation\Apache2.2\conf
Open the httpd.conf in Notepad
Scroll down the file till you come to the end of the load modules.
Go to the edit menu and select paste.
Place a carriage return before and after to tidy the file up, Go to the File Menu and select save and close the file.
Goto the bin folder contain above the conf folder, and copy the folder location.
Open a command prompt and type CD 
and paste the coped location and press enter.
Type in htpasswd -cm c:\Data\Configuration\svn-auth-file Admin press enter. Then you will need to enter in a password twice.
Next we create a general users called user: htpasswd -m c:\Data\Configuration\svn-auth-file Admin press enter and enter the password when prompted. (Notice no -cm just -m) Again enter a password twice.
Next Restart the Apache Server Start > All Programs > Apache HTTP Server 2.2.6 > Control Apache Server > Restart
Now check that Apache is still running ok open a Internet Browser and go to http://localhost
Next go to http://localhost/SVN/Project1.
Enter the Admin username and password, you should see Revision 0 for the new repository. You're now ready to use SVN via Apache.

For more help with your Apache, Subversion or Trac install please contact

Tags:

4 responses so far ↓

  • 1 Red Leader // Sep 19, 2008 at 11:26 AM

    When I try to go to http://localhost/SVN/Project1 I get an error because I don't have this site setup. And I can't seem to find where in your instructions I would set this up. What have I missed?!
  • 2 Red Leader // Sep 19, 2008 at 11:30 AM

    Wait, wait, I got it. It's when I add the following line to Apache's httpd.conf:

    Include C:/Data/Configuration/Subversion.conf

    :)
  • 3 Sean Killeen // Dec 23, 2008 at 2:18 PM

    Great series! I'm having a little bit of trouble though, and it's because I only have one drive on my system, defaulted to E: (can't change -- business rules). Point is, there are some references in your files to "Project 1" and to C drives that you don't mention in your actual articles, and so I've been trying to hunt around them. Is there a way you could say what you modified in the files? That would help the series go much more smoothly for me.

    This has been a great help so far though. Thank you! Please e-mail me back if you can provide any help with my current issue. I appreciate it!
  • 4 Sean Killeen // Dec 23, 2008 at 4:13 PM

    I realized my previous mistake -- I'd missed some of the SVN setup in the tortoise article, but am back on pace now.

    I've modified the svn-auth-file, all is in the proper directory and referenced correctly.

    However, when I go to the directory, after responding to the login box it presents to me, it still gives me error 403 -- Forbidden.

    What am I doing wrong? Please feel free to contact me via e-mail to work this out; I'd greatly appreciate it.

Leave a Comment

Leave this field empty: