How do I install mod_dav_svn module on an Apache / MAMP server?

Posted by fettereddingoskidney on Server Fault See other posts from Server Fault or by fettereddingoskidney
Published on 2012-06-21T16:12:57Z Indexed on 2013/06/28 22:23 UTC
Read the original article Hit count: 268

Filed under:
|
|

How do I install additional modules into my server configuration? Currently all of the other modules are installed in /Applications/MAMP/Library/modules...and I see that they are mod_*.so source files, but I cannot seem to get mine to end up here... :?

I am trying to set up an SVN repository and use my Apache (MAMP) server to serve the repository. I am using the subversion installation that came (pre-installed?) on Mac OS X 10.5. The repository is working, but I cannot access it remotely through my MAMP server using a client program (Dreamweaver CS5). When I try, I get an error from Dreamweaver, saying:

Cannot connect to host xxx: Connection refused.

This, I believe, is because I have not properly configured my Apache server to serve the svn repository. So, I added the following lines to my httpd.conf file:

<Location /subversion>
    DAV svn
    SVNPath /Applications/MAMP/htdocs/svn/
    AuthType Basic
    AuthName "Subversion repository"
    AuthUserFile /applications/mamp/htdocs/.htpasswd
    Require ServerAdmin
</Location>

Restarted the server with the command

$ /Applications/MAMP/Library/bin/apachectl -k restart

I used this path because otherwise the default apachectl path is set to /usr/sbin/apachectl, which is the location of the pre-installed command on Mac OS X, since the OS comes packaged with a built-in Apache server.

And I get the error:

Syntax error on line 1153 of /Applications/MAMP/conf/apache/httpd.conf:
Unknown DAV provider: svn

I checked the upper portion of httpd.conf and see that dav_module (mod_dav.so) is loaded and is in fact in my the modules directory of my server. However, mod_dav_svn is not installed in that directory nor is it in the LoadModule portion of httpd.conf. So I need to install it, right? I have tried installing modules into my MAMP server before but was never successful...because I don't know how to do it. Can someone please walk me through how to install that module?

Thanks for your time!

© Server Fault or respective owner

Related posts about apache2

Related posts about svn