To improve the convenience and security of account management, the company decided to upgrade from NIS to LDAP at its own suggestion. After two weeks of research, we finally completed the setup of the LDAP server and integrated it with SVN. During this period, I found a lot of materials, but most of them were useless. No document can be set up successfully. It was not easy to find out a few decent items in the Age of Data flooding. Therefore, we recommend the complete setup steps and hope to help people in need. If you have any questions, please kindly advise.
1. Installation preparation
Lneon-0.29.6.tar.tar
: Http://www.webdav.org/neon/
Lapr-1.4.6.tar.gz
: Http://apr.apache.org/download.cgi
Lapr-util-1.4.1.tar.gz
: Http://apr.apache.org/download.cgi
Lopenssl-1.0.0g.tar
: Http://openssl.org.com
Lserf-0.3.0.tar.bz2
: Http://serf.googlecode.com/
Lhttpd-2.2.22.tar
: Http://httpd.apache.org/download.cgi
Lsubversion-1.6.18.tar.gz?subversion-deps-1.6.18.tar.gz
: Www.subversion.org.cn
Subversion English installation instructions: http://svn.collab.net/repos/svn/trunk/INSTALL
L configure the environment
Operating system version: RHEL x86_64 AS 4.6 (5.8 passed the test)
LDAP server version: Red_Hat_Diretory_Server-8.0
L description
The specific functions of neon, serf, apr, and apr-util are not described. All are required by subversion. In fact, the source code package of subversion itself contains, however, in some cases, it is better to use your own download. This is what I found after using other tools and SVN integration, and the built-in package cannot be compiled. Therefore, we recommend that you use the above version. In other words, these versions are tested to be perfectly integrated.
2. Install httpd, apr, and apr-util
It is very important that apache cannot be compiled and installed without uninstalling it.
# Yum remove httpd apr-util
Or
# Rpm-e -- allmatches apr-{version}
# Rpm-e apr-util-{version}
# Rpm-e httpd
The following installation steps are not described. The installation of the source code package is basic knowledge. Check the installation file of the installation package.
2.2 install APR and APR-util
# Tar xzvf APR-1.4.6.tar.gz
# Cd apr-1.4.6
#./Configure -- prefix =/usr/local/apr
# Make
# Make install
# Tar xzvf APR-util-1.4.1.tar.gz
# Cd apr-util-1.4.1
#./Configure -- prefix =/usr/local/apr-util -- with-apr =/usr/local/apr
# Make
# Make install
2.3 install openssl
# Tar zxvfopenssl-1.0.0g.tar.gz
# Cd openssl-1.0.0g
#./Config -- shared
# Make
# Make test
# Make install
# Echo/usr/local/ssl/lib>/etc/ld. so. conf
# Ldconfig
2.4 install apache
# Tar xzvf httpd-2.2.22.tar.gz
# Cd httpd-2.2.22
#./Configure \
-- Prefix =/usr/local/apache2 \
-- Enable-so \
-- Enable-rewrite = share \
-- Enable-proxy = share \
-- Enable-proxy-ajp = share \
-- Enable-dav = share \
-- Enable-dav-fs \
-- Enable-mod-shared = all \
-- Enable-ssl = static \
-- Enable-ldap \
-- Enable-authnz-ldap \
-- With-ldap \
-- With-defined ded-apr \
-- With-apr =/usr/local/apr \
-- With-apr-util =/usr/local/apr-util /\
-- With-ssl =/usr/local/ssl/
# Make
# Make install
2.5 install subversion
# Tar xzvf subversion-1.6.18.tar.gz
# Tar xzvf subversion-deps-1.6.18.tar.gz
# Tar xzvf neon-0.29.6.tar.gz
# Tar xjvf serf-0.3.0.tar.bz2
# Cd subversion-1.6.18
# Rm-rf apr-util neon serf
# Cp-ar ../neon-0.29.6 neon
# Cp-ar ../serf-0.3.0 serf
# Chown-R 1000: users neon serf
#./Configure \
-- Prefix =/usr/local/subversion \
-- With-apxs =/usr/local/apache2/bin/apxs \
-- With-ssl \
-- With-apr =/usr/local/apr \
-- With-apr-util =/usr/local/apr-util \
-- With-zlib =/usr/lib64
# Make & make install
Run/usr/local/subversion/bin/svn -- version to check whether the following information is displayed:
Svn, version1.6.18 (r1303927)
Compiled Aug 22 2012, 10:32:42
Copyright (C) 2000-2009 CollabNet.
Subversion is opensource software, see http://subversion.apache.org/
This productdocumdes software developed by CollabNet (http://www.Collab.Net /).
The followingrepository access (RA) modules are available:
* Ra_neon: Modulefor accessing a repository via WebDAV protocol using Neon.
-Handles 'HTTP 'scheme supports http
-Handles 'https' scheme supports https
* Ra_svn: Modulefor accessing a repository using the svn network protocol.
-With Cyrus SASL authentication
-Handles 'svn 'scheme
* Ra_local: Module for accessing a repository on local disk.
-Handles 'file' scheme
Recommended reading:
Subversion configuration instances in Linux
CentOS 6.2 SVN setup (YUM installation)
Build an SVN server using Apache + SVN
Set up and use the SVN server in Windows + reset the password on the client
Install SVN in Ubuntu Server 12.04 and migrate Virtual SVN data
Build svn service and migration method on Ubuntu Server
Build SVN server with online storage