Centos7 Installing Apache

Source: Internet
Author: User
Tags install openssl openssl

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

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.