在试图将Apache配置为使用certbot新安装的证书为https服务时,我了解到mod_ssl没有启用。它甚至不在模块目录中。我试着用--启用-ssl选项重新编译Apache,发现使用来自mod_ssl的定义的能力没有改变。为了在apache中启用mod_ssl,我还能做什么呢?
配置时出现了此错误:
./configure --with-included-apr --with-included-apr-util --enable-ssl --prefix=/usr/local/httpd
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 can not be built due to prerequisite failures我试着安装openssl,并被告知我已经处于最高版本了:
%>apt-get install openssl
Reading package lists... Done
Building dependency tree
Reading state information... Done
openssl is already the newest version (1.1.0l-1~deb9u1).一些人询问了操作系统:
Linux toesr-instance 4.9.0-11-amd64 #1 SMP Debian 4.9.189-3+deb9u2 (2019-11-11) x86_64 GNU/Linux发布于 2020-02-19 16:20:28
经过一些其他搜索之后,似乎也需要libssl。安装它,然后运行配置解决了这个问题。
发布于 2020-02-19 00:17:38
若要使其以root形式运行,请执行
a2enmod ssl 发布于 2021-08-17 01:20:55
我在CentOS 7上也有同样的问题.安装openssl并重新编译,问题解决了.
yum install openssl-develhttps://serverfault.com/questions/1003623
复制相似问题