Install the CollabNet Subversion server on Redhat AS 5.2

Source: Internet
Author: User
Tags collabnet subversion collabnet
  • 1. Download

To www.Collab.net/Developers/tools/download client and server:

CollabNetSubversion-client-1.6.6-1.i386.rpm

CollabNetSubversion-server-1.6.6-1.i386.rpm

 

2. Installation

Install the client before installing the Server.

Rpm-Uvh CollabNetSubversion-client-1.6.6-1.i386.rpm

Rpm-Uvh CollabNetSubversion-server-1.6.6-1.i386.rpm

 

3. Configuration

 

Create a Repository directory:

Mkdir-p/opt/svn/repos

 

Run the configuration script:

/Opt/CollabNet_Subversion/bin/Configure-CollabNet-Subversion

Create project libraries and users as prompted

 

After the configuration is complete, the SVN server is automatically started.

 

Username storage location:/etc/opt/CollabNet_Subversion/conf/svnserve_auth_file

 

Restart the service:

Service collabnet_subversion restart

 

 

4. Access

 

Svn: // localhost/YOUR-REPOS-NAME (based on svnserver)

Or http: // localhost/YOUR-REPOS-NAME (based on Apache)

 

 

5. Integration with the original Apache System

Because the SVN of Collabnet comes with an apache server, if you want to use the original Apache server of the system, you can select the svnserve mode during configuration, and then manually configure the original Apache and SVN integration.

 

RHEL uses httpd-2.2.3-11.el5_1.3.i386.rpm, Collabnet's official website mentions that Collabnet SVN does not support integration with RHEL's original Apache (http://subversion.open.collab.net/ds/viewMessage.do? DsForumId = 3 & dsMessageId = 313586) However, a Chinese brother replied that it could be solved by adding the Collabnet library directory to the system library search directory.

 

1) copy the SVN Module

Copy mod_authz_svn.so and mod_dav_svn.so in the/opt/CollabNet_Subversion/modules/directory to/usr/lib/httpd/modules

2) modify the httpd. conf file

# Vi/etc/httpd/conf/httpd. conf

Added:

LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so

 

<Location/svn>
DAV svn
SVNParentPath/opt/svn/repos/
AuthType Basic
AuthName "Subversion"
AuthUserFile/opt/svn/passwdfile

# AuthzSVNAccessFile/opt/svn/accessfile
Require valid-user
</Location>

3) Add the library directory of Collabnet to System Configuration

This step mainly solves the following error when starting Apache.

Starting httpd: Syntax error on line 995 of/etc/httpd/conf/httpd. conf: Cannot load/etc/httpd/modules/mod_dav_svn.so into server:/opt/CollabNet_Subversion/lib/libsvn_subr-1.so.0: undefined symbol: apr_memcache_add_server

 

# Vi/etc/ld. so. conf

Add a row:

/Opt/CollabNet_Subversion/lib

 

# Ldconfig

Note: An Xwin startup error occurs after CollabNet lib is added:

Nautilus can't be used now Nautilus can't be used now, due to an unexpected error from Bonobo when attempting to register the file manager view server.

 

This is caused by the libz. * Library Under CollabNet lib. You can use another method to modify the/etc/init. d/httpd script and add the red part:

Start (){
Echo-n $ "Starting $ prog :"
Check13 | exit 1
Export LD_LIBRARY_PATH = $ LD_LIBRARY_PATH:/opt/CollabNet_Subversion/lib
LANG = $ HTTPD_LANG daemon -- pidfile =$ {pidfile} $ httpd $ OPTIONS
RETVAL =$?
Echo
[$ RETVAL = 0] & touch $ {lockfile}
Return $ RETVAL
}

 

4) create a user authentication File

For example, to add two users test and test1, run the following command:

# Htpasswd-cm/opt/svn/passwdfile test
New password:
Re-type new password:
Adding password for user test

 

# Htpasswd-m/opt/svn/passwdfile test1

New password:
Re-type new password:
Adding password for user test1

 

Note: The-c parameter is required to create a password file.-m indicates that the more secure MD5 algorithm is used.

 

6. Problems

. You cannot create a new folder using http, but the svn: // protocol is correct. error message:

Can't open file 'svn/db/txn-current-locks': permission denied

 

Go to the directory where svn reposity is located,

# Chown csvn: apache *-R

# Chmod-R 770 *

 

7. Other SVN tools

1) SVNManager: The http://svnmanager.org/

Supported functions:

  • Create, remove, load and dump repositories
  • Manage user accounts for access to the repositories
  • Manage groups for acces to the repositories
  • Invite users by email to create an account on the server

 

 

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.