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