Centos7 Installing Apache
I. Installation of APR
wget http://mirrors.tuna.tsinghua.edu.cn/apache//apr/apr-1.6.2.tar.gz
Tar zxf apr-1.6.2.tar.gz
./configure--PREFIX=/USR/LOCAL/APR
Make
Make install
Second, installation Apr-util
Yum-y Install Expat-devel
Wget
Http://mirrors.tuna.tsinghua.edu.cn/apache//apr/apr-util-1.6.0.tar.gz
Tar zxf apr-util-1.6.0.tar.gz
./configure--prefix=/usr/local/apr-util--WITH-APR=/USR/LOCAL/APR--WITH-INCLUDED-APR
Make
Make install
Iii. installation of Zlib-devel, OpenSSL, Openssl-devel
Yum-y Install Zlib-devel
Yum-y Install OpenSSL Openssl-devel
IV. installation of Apache
Mkdir/home/qiu/tools
Mkdir-p/home/qiu/tools
Ls
cd/home/qiu/tools/
Ls
Yum-y Install wget
wget http://apache.fayea.com/httpd/httpd-2.2.34.tar.gz
Tar zxf httpd-2.2.34.tar.gz
CD httpd-2.2.34
Ls
./configure--prefix=/application/apache--enable-so--enable-deflate--enable-expires--enable-rewrite-- Enable-cache--enable-file-cache--enable-mem-cache--disable-cgi--enable-static-support--with-mpm=worker-- Enable-ssl--with-apr=/usr/local/apr/--with-apr-util=/usr/local/apr-util/--enable-headers
Make
Make install
Launch Apache
/application/apache/bin/apachectl start
This article from "Doublelinux" blog, reproduced please contact the author!
Centos7 Installing Apache