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