Here is what I do whenever I want to compile my apache+ssl and never had a problem with that:
First of all I extract all the tarballs under the same directory (i.e. /tmp)
Configure, install openssl in /usr/local/ssl (Btw use the latest version 0.9.7e for security reasons):
Code:
./config –prefix=/usr/local/ssl
make
make test
make install
Configure mod-ssl (
http://www.modssl.org). Also pick the latest version.
Code:
./configure –with-apache=../apache_1.3.33
Finally compile, install apache:
Code:
SSL_BASE=../openssl-0.9.7e ./configure --enable-module=ssl –prefix=/usr/local/apache [--enable-other-options]
As you see, for the apache configure you need the sources of openssl and you must also provide a prefix for apache to be installed.