Deploy apache + svn + ldap for verification in Linux

Source: Internet
Author: User

 

I. Related versions: subversion

 

2: Installation preparation # cd/opt # tar zxvf httpd-2.2.17.tar.gz # tar zxvf subversion-deps-1.6.15.tar.gz # tar zxvf subversion-1.6.15.tar.gz to this step, if it is a 32-bit linux system, you can directly install httpd, for 64-bit linux, perform the following operations to re-compile: 1. Delete the configure file in the installation directory, in my environment is httpd-2.2.6/configure2, delete httpd-2.2.17/srclib/apr-util/configure 3, rebuild the compilation file using the following command (the following command runs under the http-2.2.17/directory) #. /buildconf: After the above code is used to rebuild the compilation file, you can now have a 64-bit apr-util

 

Iii. httpd Installation.

 

#. /Configure -- prefix =/usr/local/apache1 -- enable-so -- enable-dav-fs -- enable-ldap -- enable-authnz-ldap -- with-defined ded- apr -- with-ldap-include =/usr/lib64/evolution-openldap/include -- with-ldap-lib =/usr/lib64 -- with-apr = srclib/ apr/apr-1-config -- with-apr-util = srclib/apr-util/apu-1-config

 

Make & make install

 

4. subversion Installation

 

#. /Configure -- with-apxs =/usr/local/apache1/bin/apxs -- with-apr =/usr/local/apache1/bin/apr-1-config -- with-apr-util =/ usr/local/apache1/bin/apu-1-config -- prefix =/usr/local/subversion -- with-ssl -- with-zlib =/usr/lib64

 

# Make & make install

 

Configure encounters an error: configure: error: Subversion requires SQLite

Download the latest sqlite sqlite-autoconf-3070701.tar.gz copy to the following directory

 

Cp sqlite3.c ~ /Lamp/subversion-1.6.17/sqlite-amalgamation/

 

Error:/usr/bin/ld: cannot find-lexpat

 

Yum install expat-devel

 

V. Establishment

# Cd/opt/subversion/bin/

 

# Mkdir/svn

 

#./Svnadmin create/svn/test

 

# Ls/opt/ccxesvn/test/

 

// If the following content appears in ls/opt/ccxesvn/test/, the subversion is successfully installed.

 

Conf dav db format hooks locks README.txt

 

Start the service:/usr/local/subversion/bin/svnserve-d

 

6. modify directory permissions #

 

Chmod-R 777/svn

 

Domain authentication. Other users do not have access permissions.

 

7. Modify Apache configuration file 1): Open the apache/conf/httpd. conf file 2): Modify the httpd. conf file,

 

LDAPSharedCacheSize 200000

LDAPCacheEntries 1024

LDAPCacheTTL 600

LDAPOpCacheEntries 1024

LDAPOpCacheTTL 600

<Location/repos>

DAV svn

SVNParentPath/svn

SVNListParentPath On

Order allow, deny

Allow from all

AuthType Basic

AuthBasicProvider ldap

AuthzLDAPAuthoritative off

AuthName "example work"

AuthLDAPURL "= *)"

AuthLDAPBindDN "demo@office.net"

AuthLDAPBindPassword "123456"

Require ldap-group CN = ITdev, OU = group, DC = office, DC = net

</Location>

 

Restart apache

 

Related Article

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.