Apache + svn + ldap + ldapphpadmin configuration method environment installation package required: httpd-2.2.17.tar.bz2subversion-1.5.5.tar.bz2php-5.2.14ssl.ca-0.1.tar.gz other software using YUM installation software default location in/usr/local/src 1, YUM installation...
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
DAV svn
SVNPath/opt/svn
AuthType Basic
AuthName "ismole"
AuthUserFile/opt/svn/passwd
Require valid-user
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