Steps I have for installing Apache with openssl. Please let me know if there's issues. I will be using a secure server for setup
config shared --prefix=/apps/openssl --openssldir=/apps/openssl
$ make
$ make install
Now, get the latest Apache 2.4.x, APR and APR-Util libraries. You will need to unpack all three packages into the same source tree, with the latter two in the location where Apache expects them. For example:
1. $ tar zxvf httpd-2.4.18.tar.gz
2. $ cd httpd-2.4.18/srclib/
3. $ tar zxvf ../../apr-1.4.8.tar.gz
4. $ ln -s apr-1.4.8/ apr
5. $ tar zxvf ../../apr-util-1.5.2.tar.gz
6. $ ln -s apr-util-1.5.2/ apr-util
CPPFLAGS="-I/apps/openssl/include";export CPPFLAGS
LDFLAGS="-L/apps/openssl/lib"; export LDFLAGS
./configure --enable-ssl=static --prefix=/apps/apache --enable-so --enable-proxy --enable-rewrite
--with-included-apr --enable-ssl --with-ssl=/apps/openssl
--with-pcre=/apps/pcre CPPFLAGS=-I/apps/openssl/include LDFLAGS=-L/apps/openssl/lib
make
make install