Apache 2.4 Compile and Install
Apache 2.4 Compile and Install
5
In this article, I will tell you how to Compile and Install Apache 2.4.10 on
Red Hat 6.5 And CentOS 6.5.
Step #1: Lets first install rpm-build and make the working folder.
$> yum -y install rpm-build
Step #2: Lets move to the SOURCES folder and download apache
$> cd ~/rpmbuild/SOURCES
$> wget http://www.us.apache.org/dist//httpd/httpd2.4.18.tar.bz2
Step #3: Check the the missing dependencies.
$> rpmbuild -tb httpd-2.4.18.tar.bz2
error: Failed build dependencies:
autoconf is needed by httpd-2.4.10-1.x86_64
zlib-devel is needed by httpd-2.4.10-1.x86_64
libselinux-devel is needed by httpd-2.4.10-1.x86_64
libuuid-devel is needed by httpd-2.4.10-1.x86_64
apr-devel >= 1.4.0 is needed by httpd-2.4.10-1.x86_64
apr-util-devel >= 1.4.0 is needed by httpd-2.2.29-1.x86_64
pcre-devel >= 5.0 is needed by httpd-2.4.10-1.x86_64
openldap-devel is needed by httpd-2.4.10-1.x86_64
lua-devel is needed by httpd-2.4.10-1.x86_64
libxml2-devel is needed by httpd-2.4.10-1.x86_64
distcache-devel is needed by httpd-2.4.10-1.x86_64
openssl-devel is needed by httpd-2.4.10-1.x86_64
Here we miss many libs. So lets go ahead and install them.
1:apr-util
###########################################
[100%]
$> rpm -ivh ~/rpmbuild/RPMS/x86_64/apr-util-devel-1.5.41.x86_64.rpm
Preparing...
###########################################
[100%]
1:apr-util-devel
###########################################
[100%]
MOD_JK
download and unzip modjk connector
$> wget http://www.us.apache.org/dist/tomcat/tomcatconnectors/jk/tomcat-connectors-1.2.41-src.zip
cd /etc/httpd/connector/tomcat-connectors-1.2.41-src/native
./configure --with-apxs=/usr/bin/apxs
make
make install
# Load mod_jk.so
LoadModule jk_module modules/mod_jk.so