Compiling the installation on centos6.5 httpd-2.4

Source: Internet
Author: User
Tags unpack keep alive

New features of httpd-2.4:

1) MPM support is loaded at runtime;

--enalbe-mpm-shared=all--with-mpm={prefork|worker|event}

2) Support for event MPM

3) asynchronous read and write

4) Use different log levels for each module and per directory

5) per-Request configuration: <If>,<Elseif>

6) Enhanced version of Expression Analyzer

7) Millisecond-keep alive timeout

8) FQDN-based virtual host no longer requires namevirtualhost instructions;

9) Enable users to use custom variables

New modules:

MOD_PROXY_FCGI: Support for fastcgi connection to the backend PHP

Mode_ratelimit: rate limit, limiting the rate of transmission when users access

Mod_request: Stronger filtering capabilities for user requests

MOD_REMOTEIP: Greater control over IP addresses accessed by users

Some configuration mechanisms have been modified:

It is no longer supported to define IP-based access control using Order,allow,deny instead of require

The HTTPD program relies on Apr and Apr-util

The APR (Apache portable run-time Libraries,apache Portable runtime) is designed to provide an underlying support interface library that can be used across multiple operating system platforms, as its name would be, primarily for upper-level applications.

1. Install the developer kit

[email protected] ~]# Yum groupinstall ' development tools ' [[email protected] ~]# Yum groupinstall ' Server Platform develo Pment '

2. Upload apr-1.5.0.tar.bz2,apr-util-1.5.3.tar.bz2 and httpd-2.4.9.tar.bz2 three packets to the root of the virtual machine via XFTP

3. Unpack the APR-1.5.0.TAR.BZ2 package

[Email protected] ~]# tar xf apr-1.5.0.tar.bz2 [[email protected] ~]# CD apr-1.5.0

4. Install Apr into/USR/LOCAL/APR so that it does not affect the use of the original APR version of the system

[[email protected] apr-1.5.0]#/configure--prefix=/usr/local/apr[[email protected] apr-1.5.0]# make && make Install

Wait for the installation to complete, check the installation directory

[Email protected] apr-1.5.0]# ls/usr/local/apr/bin build-1 include lib[[email protected] apr-1.5.0]# Ls/usr/local/ap R/libapr.exp libapr-1.a libapr-1.la libapr-1.so libapr-1.so.0 libapr-1.so.0.5.0 pkgconfig

5. Unpack the APR-UTIL-1.5.3.TAR.BZ2 package

[Email protected] ~]# Tar XF apr-util-1.5.3.tar.bz2

6. Also put the apr-util in the new position/usr/local/apr-util. Because Apr-util is a tool for APR, and the new version of APR is installed in a different location, it is apr-util to specify the installation location of APR

[Email protected] apr-util-1.5.3]#/configure--prefix=/usr/local/apr-util--with-apr=/usr/local/apr[[email Protected] apr-util-1.5.3]# make && make install

7. Unpack the HTTPD-2.4.9.TAR.BZ2 package

[Email protected] ~]# Tar XF httpd-2.4.9.tar.bz2

8. Compile and install httpd-2.4.9

[Email protected] httpd-2.4.9]#/configure--prefix=/usr/local/apache--sysconfdir=/etc/httpd--enable-so-- Enable-ssl--enable-cgi--enable-rewrite--with-pcre--with-zlib--with-apr=/usr/local/apr--with-apr-util=/usr/ Local/apr-util--enable-mpms-shared=all--with-mpm=event--enable-modules=most[[email protected] httpd-2.4.9]# make && make Install
[Email protected] ~]# vim/etc/profile.d/httpd24.shexport path=/usr/local/apache/bin: $PATH [[email protected] ~]# source/etc/profile.d/httpd24.sh

10. Test whether the HTTPD program starts normally



11. header File Export

[Email protected] apache]# ln-sv/usr/local/apache/include//USR/INCLUDE/HTTPD2

12. Add Man Manual

[Email protected] apache]# Vim/etc/man.config

Add the location of the man folder in the configuration file

650) this.width=650; "title=" Image_thumb61 "border=" 0 "alt=" image_thumb61 "src=" http://s3.51cto.com/wyfs02/M01/5A/ 03/wkiol1t0apgz1hskaaek2-axdp0511.jpg "height=" 216 "/>

13. Post-Installation Environment introduction

[Email protected] apache]# Lsbin build cgi-bin error htdocs icons include logs man manual modules

Bin: Binary Program Directory

Cgi-bin: Server-side Script directory

Htdocs: Default Home location

Error: Default Errors page

Icons: Icon

Include: Header file

Logs: Log

Modules: module

14.MPM Configuration

Enable MPM Feature

[Email protected] httpd]# vim httpd.conf# server-pool Management (MPM specific) include/etc/httpd/extra/httpd-mpm.conf

MPM Configuration file Location

650) this.width=650; "title=" IMAGE_THUMB1 "border=" 0 "alt=" image_thumb1 "src=" http://s3.51cto.com/wyfs02/M02/5A/03/ Wkiol1t0appwwr_iaal2kme8kwu137.jpg "height=" 299 "/>

If you want to change MPM, you need to modify the httpd location file

650) this.width=650; "title=" image_thumb41 "border=" 0 "alt=" image_thumb41 "src=" http://s3.51cto.com/wyfs02/M00/5A/ 03/wkiol1t0aporr2kfaafdc2aiqya757.jpg "height="/>

Revision changed to

650) this.width=650; "title=" Image_thumb6 "border=" 0 "alt=" image_thumb6 "src=" http://s3.51cto.com/wyfs02/M01/5A/03/ Wkiol1t0appsebecaagtaz7z_v8738.jpg "height=" 144 "/>

viewing httpd loaded modules with the HTTPD-M command

650) this.width=650; "title=" Image_thumb8 "border=" 0 "alt=" image_thumb8 "src=" http://s3.51cto.com/wyfs02/M02/5A/03/ Wkiol1t0appcwahqaam6pnfslb0910.jpg "height=" 526 "/>



Compiling the installation on centos6.5 httpd-2.4

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.