By David Fekke
January 17th, 2011
I use subversion at work, but I have been wanting to run a subversion server at home. On Windows I use Visual SVN server, but at home I am running Mac OS X on all of my home computers. I use one of my Macs as a server.
Here is the good news. Mac OS X 10.5 comes with Apache 2.2 and SVN pre-installed.
Here is the bad news. An older version of SVN exists on Mac OS X. I believe it is version 1.4.4 of subversion.
I found some good resources on how to set up Subversion with Apache 2.2. This Sonzea article does a good job of the nuts and bolts of setting up a SVN repository. I did have to change the chmod to "www" instead of "_www". I was not able to get trac working. I think it was because I am using an older Mac with a PowerPC processor.
I also was able to install a newer version of subversion software from the Collab.net site. After the newer version of subversion is installed, I had to change my subversion.conf file so that it pointed to the newer shared objects.
By default you point your subversion.conf file to the following location;
LoadModule davsvnmodule libexec/apache2/moddavsvn.so
LoadModule authzsvnmodule libexec/apache2/modauthzsvn.so
After I installed the newer version of SVN, I changed this file to point to the new location of the moddavsvn.so and modauthzsvn.so files.
LoadModule davsvnmodule /opt/subversion/lib/svn-apache/moddavsvn.so
LoadModule authzsvnmodule /opt/subversion/lib/svn-apache/modauthzsvn.so
I also installed project tracker after I ran into problems trying to install Trac. I am really liking this web application for doing my bug tracking. It also integrates with subversion and will send SMS messages.