Patrick-Dussault

FastTracks :: Web Agent : How to Compile Apache 2.2.24.tar.bz2 in 64bit on Redhat 6 64bit

Blog Post created by Patrick-Dussault Employee on Jan 15, 2016

Here a sample to compile Apache 2.2 on RedHat for SiteMinder Web Agent.

 

Do the commands as root.

 

# bunzip2 httpd-2.2.24.tar.bz2

# tar -xvf httpd-2.2.24.tar && ls -l

# cd httpd-2.2.24

# export LIBS=-lpthread

# ./configure --prefix=/opt/apache2224 --enable-so --enable-auth-digest --enable-rewrite --enable-setenvif --enable-mime --enable-deflate --with-ssl=/usr --enable-headers --enable-ssl

# make && make install

# /opt/apache2224/bin/apachectl -V

 

Server version: Apache/2.2.24 (Unix)

Server built:   Jan 15 2016 03:54:08

Server's Module Magic Number: 20051115:31

Server loaded:  APR 1.3.9, APR-Util 1.3.9

Compiled using: APR 1.3.9, APR-Util 1.3.9

Architecture:   64-bit

Server MPM:     Prefork

  threaded:     no

    forked:     yes (variable process count)

Server compiled with....

-D APACHE_MPM_DIR="server/mpm/prefork"

-D APR_HAS_SENDFILE

-D APR_HAS_MMAP

-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)

-D APR_USE_SYSVSEM_SERIALIZE

-D APR_USE_PTHREAD_SERIALIZE

-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT

-D APR_HAS_OTHER_CHILD

-D AP_HAVE_RELIABLE_PIPED_LOGS

-D DYNAMIC_MODULE_LIMIT=128

-D HTTPD_ROOT="/opt/apache2224"

-D SUEXEC_BIN="/opt/apache2224/bin/suexec"

-D DEFAULT_PIDLOG="logs/httpd.pid"

-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"

-D DEFAULT_LOCKFILE="logs/accept.lock"

-D DEFAULT_ERRORLOG="logs/error_log"

-D AP_TYPES_CONFIG_FILE="conf/mime.types"

-D SERVER_CONFIG_FILE="conf/httpd.conf"

 

# /opt/apache2224/bin/apachectl start

 

Open a browser and access the server on port 80, it should returns :

 

It works !

Outcomes