Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Apache HTTP Server is an open-source web server platform.  This article will outline the steps to install, configure, harden a zero-footprint instance of Apache 2.2 & 2.4, with particular focus on the nuances between each.

Prerequisites

If you are building you zero-footprint for the first time you will need a C/C++ compiler avaiable on the initial system.  For the most part, most Unix/Linux distributions will come packaged with the gcc compiler.  

Section
bordertrue
Column
width50%

Unix/Solaris

Check if gcc compiler is installed:

Code Block
languagebash
themeDJango
$ which gcc

# which is dependent on environment variables being set correctly.  
# Alternatively check the /usr/bin and /usr/sfw/bin paths.

If no compiler found, install it:

Code Block
languagebash
themeDJango
$ pkg install gcc-3  # or whatever version you need
Column
width50%

Linux

Chech if gcc compilete is installed:

Code Block
languagebash
themeDJango
$ which gcc

If no compiler found, install it:

Code Block
languagebash
themeDJango
# Debian/Ubuntu
$ sudo apt-get install build-essential

# RHEL/CentOS/Fedora
$ sudo yum group install "Development Tools" 


Initial Installation

The first step is to retrieve the source files from Apache.  Grab the compressed files pertinent to the O/S you are using, typically bzip2 for Unix and gunzip for Linux:

...