OpenAM integration is tigthly coupled with Apache Server to protect web pages using a web policy agent. Apache Server can be made available out of the box when bundled with the OS, but often does not allow to be tailored  to customer needs.

OpenAM-compiling Apache Server 2.4: the only way to generate a proper installation is to recompile/regenerate apache server from source distribution. This document describes how it is possible to compile an apache 2.4 server from source distribution on a linux platform.

  1. Documentation pointer reference

Apache compilation
https://httpd.apache.org/docs/2.4/en/install.html#download

Apache Server
https://httpd.apache.org/

PCRE
https://www.pcre.org/

 2. Distribution source file needed

Before being able to generate Apache 2.4, you will need to download the following sources

-Apache 2.4 sources
-Apache APR lib 1.52
-Apache APR utils 1.54
-PCRE 8.38 (don’t use PCRE 2)

3. Target installation
Create a target directory /dev
mkdir -p /dev

At the end of the deployement the apache server is installed at /dev/apache24

4.  PCRE lib Compilation
pcre sources has been obtained as pcre-8.38.zip

cd /dev
unzip pcre-8.38.zip
cd pcre-8.38
./configure –prefix=/dev/pcre
make
make install

5.  Apache Deployement
Apache 2.4 sources has been obtained as httpd-2.4.20.tar.gz

cd /dev
gzip -d httpd-2.4.20.tar.gz
tar xvf httpd-2.4.20.tar

Apache source are installed below:
cd /dev/httpd-2.4.20

Before compiling, it is needed to install Apache APR and APACHE APR-UTIL in apache source distribution
below srclib directory

6. Copying Apache APR and APR-UTIL in Apache distribution
Copy Both apr and apr-util below srclib of apache

cd /dev/httpd-2.4.20/srclib
gzip -d apr-1.5.2.tar.gz
tar xvf apr-1.5.2.tar

gzip -d apr-util-1.5.4.tar.gz
tar xvf apr-util-1.5.4.tar

Now rename libs into apr and apr-util
cd /dev/httpd-2.4.20/srclib
mv apr-1.5.2 apr
mv apr-util-1.5.4 apr-util

7.  Apache compilation

cd /dev/httpd-2.4.20
./configure –prefix=/dev/apache24 –with-pcre=/dev/pcre
make
make install

Apache is installed at  /dev/apache24

Now it is ready to be used with OpenAM

 

janua
Les derniers articles par janua (tout voir)