Compiling the installation on the CentOS6.7 operating system httpd2.4

Source: Internet
Author: User

Function Description:

On CentOS6.7 operating system, compile and install Apache service, realize custom function, etc.

First, installation Prerequisites

1) Install the required packages for compiling httpd

[Email protected] ~]# yum-y install wget gcc-c++ ncurses ncurses-devel cmake make Perl bison OpenSSL openssl-devel gcc* LIBXML2 libxml2-devel curl-devel libjpeg* libpng* freetype* pcre-devel
2) Install Pcre,apr,apr-uril

[Email protected] ~]# wget http://mirrors.cnnic.cn/apache//apr/apr-util-1.5.4.tar.gz

[Email protected] ~]# wget http://101.96.10.41/downloads.sourceforge.net/project/pcre/pcre2/10.22/pcre2-10.22.zip ? r=https%3a%2f%2fsourceforge.net%2fprojects%2fpcre%2f&ts=1472808609&use_mirror=nchc

[[Email protected] ~] #wget http://mirrors.cnnic.cn/apache//apr/apr-1.5.2.tar.gz

[[Email protected] ~] #wget https://mirrors.tuna.tsinghua.edu.cn/apache//apr/apr-iconv-1.2.1.tar.gz

[[Email protected] ~] #unzip pcre2-10.22.zip

[[email protected] pcre2-10.22] #cd pcre2-10.22

[Email protected] pcre2-10.22]#./configure--prefix=/usr/local/pcre

[[email protected] pcre2-10.22] #make && make install

[[Email protected] ~] #tar XF apr-1.5.2.tar.gz

[[email protected] apr-1.5.2] #cd apr-1.5.2

[Email protected] apr-1.5.2]#./configure--PREFIX=/USR/LOCAL/APR

[[email protected] apr-1.5.2] #make && make install

[[Email protected] ~] #tar XF apr-util-1.5.4.tar.gz

[[email protected] apr-util-1.5.4] #cd apr-util-1.5.4

[Email protected] apr-util-1.5.4]#./configure--prefix=/usr/local/apr-uril--WITH-APR=/USR/LOCAL/APR

[[email protected] apr-util-1.5.4] #make && make install

[[Email protected] ~] #tar XF apr-iconv-1.2.1.tar.gz

[[email protected] apr-iconv-1.2.1] #cd apr-iconv-1.2.1

[Email protected] apr-iconv-1.2.1]#./configure--prefix=/usr/local/apr-iconv--WITH-APR=/USR/LOCAL/APR

[[email protected] apr-iconv-1.2.1] #make && make install

First, compile and install Apache service

1) software download

[[Email protected] ~] #wget http://mirrors.sohu.com/apache/httpd-2.4.20.tar.gz

2) Create Apache user

[[Email protected] ~] #useradd-R-s/sbin/nologin Apache

3) Compiling httpd2.4

[[Email protected] ~] #tar XF httpd-2.4.20.tar.gz

[Email protected] httpd-2.4.20]#

[[email protected] httpd-2.4.20] #make && make install

4) Start MYSQ service

[[email protected] httpd-2.4.20]#/usr/local/apache/bin/apachectl start

Compiling the installation on the CentOS6.7 operating system httpd2.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.