[ZT] integration of apache2.2.4 & SVN 1.4.4 in Mac OSX

Source: Internet
Author: User
Tags collabnet

1. Download subversionMacOSX. We recommend that you download the DMG image and install it. After installation,SVNThe distributed files are stored in multiple paths as follows:

/Usr/local/bin: This is where the Subversion executables will be installed.
/Usr/local/lib: This is where subversion and it's dependency libraries will be installed.
/Usr/local/lib/SVN-Apache: This is where the Subversion Apache modules will be installed.
/Usr/local/lib/SVN-Javahl: This is where the Subversion Java bindings (javahl) will be installed.
/Usr/local/lib/SVN-Perl: This is where the Subversion Perl bindings will be installed.
/Usr/local/lib/SVN-Python: This is where the Subversion Python bindings will be installed.
/Usr/local/lib/SVN-RUBY: This is where the Subversion Ruby bindings will be installed.
/Usr/share/MAN: This is where the subversion and it's dependency man pages will be installed.
2. Run the sudo VI/etc/profile command to append the/usr/local/bin directory to the path system environment variable. Execute:
$SVN-- Version
SVN, Version 1.4.4 (r25188)
Compiled Jun, 14:23:02

Copyright (c) collabnet.
Subversion is open source software, see http://subversion.tigris.org/
This product has DES software developed by collabnet (http://www.Collab.Net /).

The following repository access (RA) modules are available:

* Ra_dav: module for accessing a repository via WebDAV (DeltaV) protocol.
-Handles 'HTTP 'Scheme
-Handles 'https' Scheme
* RA _SVN: Module for accessing a repository usingSVNNetwork protocol.
-Handles'SVN'Scheme
* Ra_local: module for accessing a repository on local disk.
-Handles 'file' Scheme
/Usr/local/SVN_ Installer_backup: This is where the Subversion installer will move any files that needed to be "overwritten ".
3. Copy/usr/local/lib/SVN-*. So under Apache to the/library/apache2/modules directory,
$ CP/usr/lib/SVN-Apache/*. So/library/apache2/modules
4. Modify the/library/apache2/CONF/httpd. conf file as follows:
Loadmodule Dav _SVN_ Module modules/mod_dav _SVN. So
LoadmoduleAuthz_SVN_ Module modules/MoD _Authz_SVN. So

DavSVN
Svnparentpath "/users/minggui/data/SVN-Repos"
Svnlistparentpath on

# Authentication information, that is, restricted access identity Configuration
Authtype basic
Authname"SVNRepository"
Authuserfile/users/minggui/data/SVN-Repos/repos1/CONF/SVN-Auth
Require valid-user

5. InitializationSVNSource code library
$ Svnadmin create -- FS-type fsfs/users/zhangminggui/data/SVN-Repos/repos1
$SVNImport/users/minggui/data/projects/testgrailsapp file: // users/minggui/data/SVN-Repos/repos1-M "init test grails app"
6. SetSVNAccount and password
$ Htpasswd-cmSVN-Auth Jacky
New password:
Re-type new password:
Adding password for user Jacky
$ Htpasswd-mSVN-Auth Zhang
New password:
Re-type new password:
Adding password for user Zhang
$ Ls
AuthzPasswdSVN-Auth svnserve. conf
6. Start the apache service and enter a URL in the address bar of the browser to access the service.SVNSource code library
$ Sudo apachectl start
URL access: http: // localhost/SVN

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.