Source Installation httpd

Source: Internet
Author: User

1. Download the source package

Cd/usr/local/src

wget http://mirrors.sohu.com/apache/httpd-2.4.33.tar.gz

Tar zxf httpd-2.4.33.tar.gz


2. Download the dependency package

wget http://mirrors.tuna.tsinghua.edu.cn/apache//apr/apr-1.6.3.tar.gz

Tar zxf apr-1.6.3.tar.gz

CD apr-1.6.3

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

Make

Make install

Cd..


wget http://mirrors.shu.edu.cn/apache//apr/apr-util-1.6.1.tar.gz

Tar zxf apr-util-1.6.1.tar.gz

CD apr-util-1.6.1

./configure--prefix=/usr/local/apr-util--WITH-APR=/USR/LOCAL/APR

Make

Make install

Cd..


3. Compiling httpd

CD httpd-2.4.33

./configure--prefix=/usr/local/apache--WITH-APR=/USR/LOCAL/APR--with-apr-util=/usr/local/apr-util

Make

Make install



4. Error

The error will be reported when the APR and Apr-util are not compiled and installed at the beginning.

Mod_proxy_balancer.c:25:24:fatal error:apr_escape.h:no such file or directory


There are two solutions.

The first one is to disallow the module.


Skip this error, later specify the module, the general installation is not successful, recommended to solve the problem;

or compile parameters can remove the module, prohibit the module, add--disable-proxy;

Replace the software version, taking into account the operating system and software compatibility issues;

From: http://www.wanjishu.com/p/zn6v8T180330.html



A second solution is to compile and install Apr and Apr-util

The method used above



Source Installation httpd

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.