HTTP 24 Compilation Installation

Source: Internet
Author: User
Tags mirror website

First, go to mirror website download Apr apr-util and HTTP source package

Second, prepare the development environment installation develoment tools and development libraries

Iii. addressing the dependency relationship
Yum-y Install Pcre-devel
Iv. Compiling and installing APR
Tar
Cd
./configure--PREFIX=/USR/LOCAL/APR
Make && make install

V. Compile and install Apr-util
Tar
Cd
./configure--frefix=/usr/local/apr-util--WITH-APR=/USR/LOCAL/APR
Make && make install

VI. Compiling HTTPD
Tar
Cd
./configure--prefix=/usr/local/apache--sysconfdir=/etc/httpd24--enable-so--enable--ssl--enable-cgi-- Enable-rewrite--with-zlib--with-pcre--with-apr=/usr/local/apr--with-apr-util=/usr/local/apr-util-- Enable-modeles=most--enable-mpms-shared=all--with-mpm=event
Make && make install


Then export header files, library files, Help files, modify environment variables


Modify the/etc/init.d/http file later to modify the Apachectl path httpd path and PID path

Chkconfig Join boot Start

It's done.





 httpd2.4 new features
        1) MPM supports loading at run time
             --enable-mpms-shared=all--with-mpm=event Enable the default event
         2) Support event
        3) asynchronous read and write
         4) Specify the log level on each module and per directory
        5) per request configuration: <If> <elseif>
        6) Enhanced Expression Analyzer
         7) Millisecond keepalive timeout
        8) The host name of the virtual host is not required namevirtualhost directives
        9) Support the use of custom variables
         Add some modules: Mod_proxy_fcgi,mod_ratelimit,mod_request,mod_remoteip
         has made modifications to IP-based access and is not using order,allow,deny mechanisms; It uses require for

This article is from the "10633230" blog, please be sure to keep this source http://10643230.blog.51cto.com/10633230/1882231

HTTP 24 Compilation Installation

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.