Thursday, April 25, 2013

Config Apache SVN server for Mountain Lion


After upgrade to Mac OS X 10.8 Mountain Lion.
My local SVN server is not working.
The setting should be the same, but the svn setting is removed from httpd.conf
How to get it work again?  Let's GO!!


Create file "/etc/apache2/other/svn.conf",
Add the following lines into the "svn.conf"

#svn module
LoadModule dav_svn_module libexec/apache2/mod_dav_svn.so
LoadModule authz_svn_module libexec/apache2/mod_authz_svn.so

<Location /svn>
DAV svn
SVNPath "/svn"
AuthType Basic
AuthName "admin"
AuthUserFile /etc/your_user_name.htpasswd
Require valid-user
</Location>


situee.blogspot.com

At /etc/apache2/, you may found the old config file "httpd.conf~previous".
Include the "svn.conf" in file "/etc/apache2/httpd.conf"
for example, add the following line at the end of "httpd.conf"

Include /private/etc/apache2/other/*.conf


Copy the two so file to /usr/libexec/apache2
Their location may be /opt/subversion/lib/svn-apache/

We can use "apachectl" to start/stop/restart apache server.
$sudo apachectl start
$sudo apachectl stop
$sudo apachectl restart 

Restart the apache server, then your svn server will be available at
http://localhost/svn



Reference:
situee.blogspot.com

http://purpen.iteye.com/blog/346990
在mac下配置apache+trac+svn

http://blog.163.com/sylar_lin/blog/static/192332093201171211330364/
mac的apache配置  


No comments:

Post a Comment