Archive for July 2009

Apache http access for SVN Repository

I had to add http access for our SVN repository at work, which was happily serving on the default SVN port. However after changing to our new network the SVN port has been shut down and the IT guys are in no hurry to open it up. I thought I remembered Apache can be chained with SVN for http access, went looking and sure enough. So here is a quick step tutorial with minimum configuration if you need to do the same.



1 – Download and install Apache 2.2
http://httpd.apache.org/download.cgi
I’m installing at c:\apps\apache2.



2 – Copy modules from Subversion to Apache modules
c:\apps\subversion\bin\mod_dav_svn.so
c:\apps\subversion\bin\mod_authz_svn.so
to
c:\apps\apach2\modules

and
c:\apps\subversion\bin\libdb44.dll
c:\apps\subversion\bin\intl3_svn.dll
to
c:\apps\apache2\bin
if needed



3 – Modify the Apache httpd.conf to load the SVN modules
Add the following two lines to your
c:\apps\apache2\conf\httpd.conf
file, just look for all of the lines that start with LoadModule, put them at the end of the list

LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so

Now un-comment this line in httpd.conf, it will look like this
LoadModule dav_module modules/mod_dav.so



4 – Add your svn location info to httpd.conf
At the very bottom of your httpd.conf file add these lines:

<Location /svn>
DAV svn
SVNParentPath  c:\apps\subversion\svn_repos

AuthType Basic
AuthName "Subversion Repository"
AuthUserFile conf/password.pass
Require valid-user
</Location>



5 – Create an Apache password file
To allow Apache to handle authentication for you, you’ll need to create a password file. Open a command prompt,
cd c:\apps\apache2\bin
then
htpasswd –c passwords.pass newuser

Enter the password for newuser, to add additional users

htpasswd passwords.pass anotherUser

When you have added all the users copy the passwords.pass file over to the
c:\apps\apache2\conf
directory



6 – Start the Apache service from Services
If you get errors open dos window and run Apache manually
c:\apps\apache2\bin\httpd.exe
You should see the errors reported.



7 – Access your repository over http
With Tortiese goto the repo browser, enter the appropriate path, something like the following.
http:///10.0.0.1/svn/yourRepo
You will be prompted for the user and password and should be all good to go. You should also be able to open the location in a web browser.



This quick step guide is based on the more comprehensive guide at inetsolution. That guide is great and covers setup of SVN+Apache, SSL access and group permissions.

Ignite Boulder 5

Went to Ignite Boulder 5 the other day this time I took my wife with me as she was intrigued by some of the stories I have told her of the event. She had a good time although some of the presentations were a bit geeky for her taste, overall rating of a good time.

The event was held at the Boulder Theater, a great venue, the lower level was packet full and had a good vibe to it. I didn’t check the upstairs myself but they seemed to be having a good time there as well.

Two bands played afterward, at that point after 14 presentations people were pretty much done and heading home or out for dinner.

Here are sample videos of the presentations.
Igknights of the Round Table
Find Your Community. Or Build It.
The Napa Valley of Beer

And read what kind of software it takes to be the first man on the Moon.