CentOS 6.7_64 bit Apache 2.4.20 version
Yum install gcc gcc-c++ make uuid-devel libuuid-devel unzip-y
The APR contains a number of common development components, including MMAP,DSO, etc.
Apr-util This directory also contains some common development components. These components are more closely related to Apache than they are in the APR directory. such as buckets and bucket groups, encryption, and so on.
The files in the Apr-iconv package are primarily used to implement ICONV encoding. Most of the current encoding conversion processes are related to local coding. The local encoding must be set correctly before the conversion. So if two non-native encodings A and B need to be converted, the conversion process is roughly a->local and local->b or b->local and local->a.
Install Apache dependency Associated Pack (Total four: apr,apr-iconv,apr-util,pcre)
(1), Install Apr
wget Http://apache.opencas.org//apr/apr-1.5.2.tar.gztar zxvf apr-1.5.2.tar.gzcd apr-1.5.2./configure--prefix=/usr/ Local/aprmake && make Install
(2), installation Apr-iconv
wget http://apache.opencas.org//apr/apr-iconv-1.2.1.tar.gztar-zxvf apr-iconv-1.2.1.tar.gzcd apr-iconv-1.2.1. Configure--prefix=/usr/local/apr-iconv--with-apr=/usr/local/aprmake && make install
(3), installation Apr-util
wget Http://mirrors.cnnic.cn/apache//apr/apr-util-1.5.4.tar.gztar zxvf APR-UTIL-1.5.4.TAR.GZCD apr-util-1.5.4./ Configure--prefix=/usr/local/apr-util--WITH-APR=/USR/LOCAL/APR--with-apr-iconv=/usr/local/apr-iconv/bin/ Apriconvmake && make Install
(4), installation Pcre
wget Http://120.52.73.44/nchc.dl.sourceforge.net/project/pcre/pcre/8.38/pcre-8.38.zipunzip-o PCRE-8.38.ZIPCD Pcre-8.38./configure--prefix=/usr/local/pcremake && make install
Start to formally install Apache
wget http://mirror.bit.edu.cn/apache/httpd/httpd-2.4.20.tar.gz
# ls Httpd-2.4.20.tar.gz-sh
8.0M httpd-2.4.20.tar.gz
Tar zxvf httpd-2.4.20.tar.gz
CD httpd-2.4.20
# ll INSTALL README
-rw-r--r--1 501 Games 3781 October install installation
-rw-r--r--1 501 Games 4642 January README description
$./configure--prefix=prefix
$ make
$ make Install
$ prefix/bin/apachectl Start
./configure--prefix=/application/apache2.4.20--enable-defalte--enable-expires--enable-headers--enable-modules= Most--enable-so--with-mpm=worker--enable-rewrite--with-apr=/usr/local/apr--with-apr-util=/usr/local/apr-util-- With-pcre=/usr/local/pcremake && make Install
Version information
/application/apache2.4.20/bin/apachectl-v
Server version:apache/2.4.20 (Unix)
Start
/application/apache2.4.20/bin/apachectl start
Firewall
Vi/etc/sysconfig/iptables
: OUTPUT ACCEPT [0:0] behind this
-A Output-p TCP--sport 80-j ACCEPT
-A Input-p TCP--dport 80-j ACCEPT
This article is from the "what-all" blog, please be sure to keep this source http://hequan.blog.51cto.com/5701886/1764833
Linux Apache 2.4. Version 20 installation