Apache source code Compilation and installation

Source: Internet
Author: User

1. Download the Apache installation package, http://httpd.apache.org/, I downloaded httpd-2.4.16, is the latest; then unzip the installation package and initialize the configuration and compile the installation;

Compile command:

./configure–prefix=/usr/local/apache–with-apr=/usr/local/apr–with-apr-util=/usr/local/apr-util–with-pcre=/usr/ Local/pcre (This is the initialization configuration,--prefix on behalf of the Apache installation directory is/usr/local/apache, the latter several-with representatives in addition to install Apache, but also rely on to install Apr,apr-util, Pcre Several association packs)

Make

Make install

APR not found, apr-util not found, Pcre-config for Libpcre were present when compiling apache-2.4.16

Not found the problem, the following httpd-2.4.3 these issues to solve the actual operation.

First download Apr,apr-util and pcre several installation packages on Apache website

1 solving Apr not found problem

TAR–ZXVF apr-1.5.2.tar.gz

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

Make

Make install

2. Solve Apr-util not found problem

TAR–ZXVF apr-util-1.5.4

./configure–prefix=/usr/local/apr-util

Make

Make install

3, solve pcre-config for libpcre not found problem

TAR–ZXVF pcre-8.36

./configure–prefix=/usr/local/pcre

Make

Make install

Start Apache:/usr/local/apache/bin/apachectl Start

The website is placed in the/usr/local/apache/htdocs directory

Enter http://localhost:80 in IE, if you see "It works!" in the page The word, on behalf of the Apache authentication passed;

2. Summary of some issues arising from the installation of Pcre:

When I compile pcre, that is make this step, always appear "no rule to makes target ' AUTHORS ', needed by All-am,stop" error, It means to compile makefile this file does not find the target file authors meaning, in fact pcre This directory is authors this file, but is lowercase, and then I put authors this file into uppercase, compile the error did not happen, The PCRE is also installed normally.

Apache source code Compilation and 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.