Apache "First article" Installation

Source: Internet
Author: User

First, Introduction

Apache HTTP Server (Apache) is an open source Web server of the Apache Software Foundation, which can run in most computer operating systems, and is one of the most popular Web server-side software due to its extensive use of multiple platforms and security. It is fast, reliable, and can be compiled into the server by a simple API extension, such as the Perl/python interpreter.

II. Preparation 1, environment

System platform: Red Hat Enterprise Linux Server release 7.3 (MAIPO)

Kernel version: 3.10.0-514.el7.x86_64

2. Download APR and Apr-util package

http://apr.apache.org/download.cgi

3. Download Pcre Package

Https://sourceforge.net/projects/pcre/files/pcre/

4. Download Apache Package

Http://httpd.apache.org/download.cgi#apache24

Third, installation

In accordance with official documentation requirements, APR, Apr-util, pcre,gcc-c++ and other packages must be installed, document URL address http://httpd.apache.org/docs/2.4/install.html

1. Installing GCC-related dependencies

# yum-y Install gcc*

2. Install Apr

# tar ZXVF apr-1.5.2.tar.gz

# CD apr-1.5.2

#./configure--PREFIX=/USR/LOCAL/APR

# make

# make Install

3, Installation Apr-util

# tar ZXVF apr-util-1.5.4.tar.gz

# CD apr-util-1.5.4

#./configure--prefix=/usr/local/apr-util--with-apr=/usr/local/apr/bin/apr-1-config

# make

# make Install

4, Installation Pcre

# tar ZXVF pcre-8.38.tar.gz

# CD pcre-8.38

#./configure--prefix=/usr/local/pcre--with-apr=/usr/local/apr/bin/apr-1-config

# make

# make Install

5. Installing Apache

# tar ZXVF httpd-2.4.23.tar.gz

# CD httpd-2.4.23

#./configure--prefix=/usr/local/apache--with-pcre=/usr/local/pcre--with-apr=/usr/local/apr--with-apr-util=/usr /local/apr-util

# make

# make Install

6. Test whether the installation is successful

View Apache version

Four, start 1, start the command

#/usr/local/apache/bin/apachectl Start

2. Access Test

Apache "First article" 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.