CentOS5.5 apache + svn + ldap + ldapphpadmin configuration method

Source: Internet
Author: User
Tags openldap

 

Apache + svn + ldap + ldapphpadmin configuration method

 

Environment installation package: httpd-2.2.17.tar.bz2

 

Subversion-1.5.5.tar.bz2

 

Php-5.2.14

 

Ssl.ca-0.1.tar.gz

 

Install other software using YUM

 

The default software location is/usr/local/src.

 

 

 

1. install required software in YUM

 

Yum install openldap-devel.x86_64 expat-devel.x86_64 openldap-servers openldap-clients

 

 

 

2. Install apache2

 

Tar-jxvf httpd-2.2.17.tar.bz2

 

Cd httpd-2.2.17

./Configure -- prefix =/usr/local/apache2 \

-- With-defined ded-apr \

-- With-mpm = worker \

-- With-ldap \

-- Enable-mod-static = "deflate expires "\

-- Enable-mod-shared = "ssl ldap authnz-ldap dav-fs dav-lock headers rewrite"

 

Make & make install

 

 

 

Open a web account

 

Groupadd www

 

Useradd-g www-d/home/www-s/sbin/nologin

 

Modify the httpd. conf configuration file

 

Cd/usr/local/apache2/bin/conf

 

Vim httpd. conf

 

Rename the user www

 

 

 

Start apache

 

/Usr/local/apache2/bin/apachectl-k start

 

Browsing it works is correct.

 

 

 

3. Install svn

 

Tar jxvf subversion-1.5.5.tar.bz2

 

Cd subversion-1.5.5

 

./Configure -- prefix =/usr/local/subverion -- with-apxs =/usr/local/apache2/bin/apxs

 

Make & make install

 

 

 

Create the svn root directory

Cd/usr/local/subversion/bin

./Svnadmin create -- fs-type fsfs/opt/svn

 

Open an account

Cd/usr/local/apache2/bin

./Htpasswd-c-m/opt/svn/passwd admin

Then enter your password.

 

 

 

 

Change the user and group of the svn root directory

Chown www: www/opt/svn-R

Modify svn Access Permissions

Cd/opt/svn/conf/authz

Add

[/]

Admin = rw

Modify the apache configuration file

Vim/usr/local/apache2/conf/httpd

Add

<Location/svn>

DAV svn

SVNPath/opt/svn

AuthType Basic

AuthName "ismole"

AuthUserFile/opt/svn/passwd

Require valid-user

</Location>

 

 

Generate Certificate

 

Tar-zxvf ssl.ca-0.1.tar.gz

 

Music./ssl. ca-0.1/usr/local/apache2/conf/

 

Cd/usr/local/apache2/conf/ssl. ca-0.1

 

/New-root-ca.sh

 

Enter the password below. The other files are ca. key and ca. crt.

 

We also need to generate a certificate for our server below

 

New-server-cert.sh server ./

 

Write at will

 

In this way, the two files server. csr and server. key are generated.

 

Sign

 

Sign-server-cert.sh server ./

 

Enter the password you set earlier

 

Then y generates server. crt.

 

Mv./server. * ../place the certificate under the conf directory

Cd.. vim httpd. conf

 

Remove the # Include conf/extra/httpd-ssl.conf comments

 

If the certificate is placed elsewhere, the configuration of the httpd-ssl.com to be modified

 

I am here at its default place

 

Restart the apache service

 

/Usr/local/apache2/bin/apachectl-k restart

 

Encrypt the https: // ip address on the webpage

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.