首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在使用--启用-ssl编译Apache时遇到困难

在使用--启用-ssl编译Apache时遇到困难
EN

Server Fault用户
提问于 2020-02-18 21:47:22
回答 3查看 3.5K关注 0票数 0

在试图将Apache配置为使用certbot新安装的证书为https服务时,我了解到mod_ssl没有启用。它甚至不在模块目录中。我试着用--启用-ssl选项重新编译Apache,发现使用来自mod_ssl的定义的能力没有改变。为了在apache中启用mod_ssl,我还能做什么呢?

配置时出现了此错误:

代码语言:javascript
复制
./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,并被告知我已经处于最高版本了:

代码语言:javascript
复制
%>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).

一些人询问了操作系统:

代码语言:javascript
复制
Linux toesr-instance 4.9.0-11-amd64 #1 SMP Debian 4.9.189-3+deb9u2 (2019-11-11) x86_64 GNU/Linux
EN

回答 3

Server Fault用户

发布于 2020-02-19 16:20:28

经过一些其他搜索之后,似乎也需要libssl。安装它,然后运行配置解决了这个问题。

票数 1
EN

Server Fault用户

发布于 2020-02-19 00:17:38

若要使其以root形式运行,请执行

代码语言:javascript
复制
a2enmod ssl 
票数 0
EN

Server Fault用户

发布于 2021-08-17 01:20:55

我在CentOS 7上也有同样的问题.安装openssl并重新编译,问题解决了.

代码语言:javascript
复制
yum install openssl-devel
票数 0
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/1003623

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档