You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Run Subversion server on OS X Server

Hi,


Since Mountain Lion Apple has decided to remove svn with apache modules all together. I haven't been able to configure subversion running on https as I did in Lion Server. I tried compile and install subversion from source (subversion.apache.org) but apache won't start properly.


Has anybody got any luck with that?


Thanks

Mac mini Server (Mid 2011), OS X Server

Posted on Aug 5, 2012 11:00 PM

Reply
26 replies

Aug 14, 2012 11:27 PM in response to tcpudp

I also had significant problems getting all this working. Compiling my own binaries failed as I got the same error others were getting, and when I tried to use the pre-compiled version provided by Andreas I got an error about incorrect library versions.


Anyhow, my solution was simple in the end. I managed to recover the two missing .so files from a backup I had of my Lion server before I upgraded it. I added the those into the Apache extensions directory and that seemed to work.


Next up I had problems with the configuration itself. Previously I had made my own modifications to the /etc/apache2/ conf files. However it seems that Mountain Lion no longer uses these files. Whilst the original files still exist, it seems like all the new config files are in /Library/Server/Web/Config/apache2/


I found full instruction for configuring these files the "Lion" way here:

http://www.themacosxserveradmin.com/2011/01/lion-server-and-svn.html


After a few hours of hair pulling and cursing I finally have everything back up and running again.


I hope this helps someone.

Aug 18, 2012 11:54 AM in response to S.Harvey

This is a strange, I'm not able to checkout files from subversion, but I'm able to see content via web browser.

Checkout operation gives me:


>>>svn co https://site/svn/repo1
Authentication realm: <https://site:443> UserWebDAV Gateway
Password for 'someUser':
svn: access to 'https://site/svn/repo1' forbidden


I've created also post on http://stackoverflow.com:

http://stackoverflow.com/questions/12020382/setting-up-subversion-server-on-mac- os-mountain-lion-have-access-via-browser-b


Do you know why could it be than I have access via web, but do not have it by checking out sources ?

Aug 21, 2012 12:38 PM in response to firstrecall

The following approach seems to be successful on my upgraded Mountain Lion:


1) Download and extract the SVN sources from subversion.apache.org:


subversion-1.6.18.tar.bz2

subversion-deps-1.6.18.tar.bz2


2) Configure SVN with the following command

./configure

3) Compile SVN:

make

4) Copy the two module sources into apache's directory:

sudo cp subversion/mod_authz_svn/.libs/mod_authz_svn.so /usr/libexec/apache2/

sudo cp subversion/mod_dav_svn/.libs/mod_dav_svn.so /usr/libexec/apache2/


I uploaded the compiled modules to my server and you can grab them from there (I obviously don't take any responsibility if this doesn't work for you…)


http://minitu.es/files/ML_Server/mod_authz_svn.so

http://minitu.es/files/ML_Server/mod_dav_svn.so


I use my server in combination with LDAP Auth and my config is:


LoadModule dav_svn_module libexec/apache2/mod_dav_svn.so

LoadModule authz_svn_module libexec/apache2/mod_authz_svn.so



<Location "/svn">

DAV svn

SVNParentPath "/Volumes/HDD.1.0/ps/svn/repos/"

AuthzSVNAccessFile "/Volumes/HDD.1.0/ps/svn/repos/s4q/conf/authz"

AuthType Basic

AuthName "subversion"

Require valid-user

</Location>



Which is located in /Library/Server/Web/Config/apache2/http-subversion.conf



In /Library/Server/Web/Config/apache2/httpd_server.app.conf Include this line at the end:


Include /Library/Server/Web/Config/apache2/http-subversion.conf


If you want access by any site, of use the site's config that you want to handle your svn entry point.



Thanks for inspiration:


- Andreas:

https://discussions.apple.com/thread/4181495?start=15&tstart=0

- janhellevik:

http://janhellevik.com/?tag=subversion

- Thom DeCarlo:

http://stackoverflow.com/questions/11712294/os-x-10-8-is-missing-mod-svn-so-libr aries


Sep 2, 2012 1:28 PM in response to tcpudp

Hi folks!


after an hour or so strugling with this problem, I think I found the solution:


1.- Download subversion-1.6.16 from here http://archive.apache.org/dist/subversion/


2.- Configure and build it like this:


./configure --without-berkeley-db --with-apxs=/usr/sbin/apxs --with-apr=/usr/bin/apr-1-config --with-apr-util=/usr/bin/apr-1-config

make


3.- Copy the resulting libs to the libexec folder:


sudo cp subversion/mod_authz_svn/.libs/mod_authz_svn.so subversion/mod_dav_svn/.libs/mod_dav_svn.so /usr/libexec/apache2/


Now try to relaunch your apache server. You may need to adjust a bit your httpd.conf. I had to move my svn config file:


sudo mv /etc/apache2/extra/httpd-subversion.conf /etc/apache2/other/


I had run into the problems listed above (the one about the lib version conflict), so I figured out I needed an older version. Now I have my SVN server running again on my mac with mountain lion.


Good luck!


Alfonso

Sep 2, 2012 5:23 PM in response to apsureda

I have configured everything in my Lion. After installing Mountain Lion everything is gone.


The following steps resolved my svn issue 🙂


1. Download latest subversion subversion-1.7.6 source code from http://subversion.apache.org/download/ (Make sure to download the tar ball)

2. Extract the tar file using tar -xzvf subversion-1.7.6.tar.bz2

3. Goto subversion-1.7.6 and run ./configure

4. make

5. sudo make install


This copies .so files to /usr/libexec/apache2 dir.


6. Restart apache sudo apachectl restart


Now the svn url should work.


John

Run Subversion server on OS X Server

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.