Setup Subversion 1.51-2 Server on Leopard
1. Download Universal Subversion 1.5.1-2 Binaries for MAC OS X (32 and 64 bit) from Collabent community:
2. Setup Subversion 1.5.1-2 Universal.dmg for your subversion server.
3. add .bashrc file to your home (~) and add a line
# subversion install path
export PATH="/opt/subversion/bin:$PATH"
4.Build your Repository with terminal and remember your Project-Name’s path.
# sudo mkdir /Users/SVN
# cd /Users/SVN
# sudo svnadmin create Project-Name
# sudo chown -R www /Users/SVN
now we get one repository, the path is /Users/SVN/Project-Name
5.Create subversion.auth for Authenticate User.
# htpasswd -cm /etc/apache2/subversion.auth User-Name
New password: *****
Re-type password: *****
Adding password for user User-Name
that’s it. now you build a User and Password with subversion.auth file.
6.Create httpd-subversion.conf file to /etc/apache2/extra
# cd /etc/apache2/extra
# sudo vi httpd-subversion.conf
LoadModule dav_svn_module /opt/subversion/lib/svn-apache/mod_dav_svn.co
LoadModule authz_svn_module /opt/subversion/lib/svn-apache/mod_authz_svn.so
<Location /Project-Name>
DAV svn
SVNPath /Users/SVN/Project-Name
# Authenticate a user
AuthType Basic
AuthName “SVN Repository for Project-Name”
AuthUserFile /etc/apache2/subversion.auth
# Only authenticate users may access the repository
Require vaild-user
</Location>
7.. Modify /etc/apache2/httpd.conf
#sudo vi /etc/apache2/httpd.conf
add this line
Include /private/etc/apache2/extra/httpd-subversion.conf
OK, It’s done. Stop and Start web sharing from system preferences.
In Safari type http://hostname/Project-Name in your browser,type your User-Name and password ,you should see your repository.