大网数据广告活动
服务器运维问答

How to Install mod_ssl on RHEL7 when it's missing from yum

· 52CE 我爱测

I've been given a RHEL7 server with Apache 2.4.6 and OpenSSL and I would like to install mod_ssl. The issue is yum doesn't find the package: yum install mod_ssl No package mod_ssl available. Error: Nothing to do Also it is not fo…

问题原文

原帖链接 · ServerBloke · CC BY-SA 3.0

I've been given a RHEL7 server with Apache 2.4.6 and OpenSSL and I would like to install mod_ssl. The issue is yum doesn't find the package:

yum install mod_ssl

No package mod_ssl available.
Error: Nothing to do

Also it is not found during a search, only mod_gnutls is found:

yum search mod_ssl

=================================================== Matched: mod_ssl ===================================================
mod_gnutls.x86_64 : GnuTLS module for the Apache HTTP server

How can I install mod_ssl? Do I need to find an rpm or install a repo to have yum find it?

Here's the output of listing httpd and openssl to show the versions:

yum list httpd openssl

Installed Packages
httpd.x86_64                   2.4.6-67             @rhel-7-server-rpms
openssl.x86_64                 1:1.0.2k-8.el7       @rhel-7-server-rpms

Here's my repolist:

yum repolist

repo id                                           repo name                                                       status
epel/x86_64                                       Extra Packages for Enterprise Linux 7 - x86_64                  11,769
webtatic/x86_64                                   Webtatic Repository EL7 - x86_64                                   649
repolist: 12,713

已采纳解答

原帖链接 · kubanczyk · CC BY-SA 3.0

There is no base repository (rhel-7-server-rpms) in the output of your yum repolist

I've verified that mod_ssl is found on base RHEL7 repository.

Use subscription-manager to re-enable that repo.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2017-08-16)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。