Setting up a Subversion Server on OS X Leopard
OS X 10.5 Leopard includes a complete Subversion and Apache 2 installation. However, Apache is not configured to provide access to a subversion repository using the WebDAV/DeltaV protocol. This can be achieved with a few simple steps:
- Setup the SVN Repository
- Modify Apache’s httpd.conf
- Create httpd-svn.conf
- Configure Authentication
Setup the SVN RepositoryTo setup the SVN repository, open the Terminal application and launch the command
svnadmin create <PATH_TO_REPO>
Modify Apache’s httpd.confOn OS X, the Apache configuration file httpd.conf is located in
/etc/apache2/httpd.conf
This file is only writeble for the root user. Therefore you have to edit it using
sudo vi /etc/apache2/httpd.conf
Add the following line in the section containing the LoadModule directives
LoadModule dav_svn_module libexec/apache2/mod_dav_svn.so
Following the conventions of the OS X Apache installation you should add the following lines close to the end of the httpd.conf file:
Include /private/etc/apache2/extra/httpd-svn.conf
That tells Apache to read the subversion configuration from the file located at /private/etc/apache2/extra/httpd-svn.confSave the modified file and exit vi. Create httpd-svn.confAgain fire up vi creating a new file with
sudo vi /etc/apache2/extra/httpd-svn.conf
and add the following lines
<Location /repo> DAV svn SVNPath <PATH_TO_REPO></Location>
Now you can access the repository using the URL http://localhost/repo
2 Kommentare bis jetzt
[...] http://arpablo.wordpress.com/2007/11/11/setting-up-a-subversion-server-on-os-x-leopard-2/ [...]
[...] (Of course, you’d need to configure the server. But there are good instructions here and [...]