Sunday, July 28, 2019

checking whether to enable mod_ssl... configure: error: mod_ssl has been requested but cannot be built due to prerequisite failures

I am getting the below error while installing the Apache with SSL Module.

Issue:

checking whether to enable mod_slotmem_shm... shared (all)
checking whether to enable mod_slotmem_plain... shared (all)
checking whether to enable mod_ssl... checking dependencies
checking for OpenSSL... checking for user-provided OpenSSL base directory... none
checking for OpenSSL version >= 0.9.8a... FAILED

configure: WARNING: OpenSSL version is too old 
no
checking whether to enable mod_ssl... configure: error: mod_ssl has been requested but cannot be built due to prerequisite failures 

Solution: Upgrade OPEN SSL

Download the updated version of OpenSSL Unzip and run

$ mv /usr/bin/openssl /usr/bin/openssl_bkp
$ env LDFLAGS="-ldl" 

$ ./config -fPIC --prefix=/usr/local --openssldir=/usr/local/ssl shared

$ make depend
$ make
$ make test

$ make install

Reinstall Apache again


No comments:

Post a Comment