installing mod_ssl amazon linux
Try this:
sudo yum install mod24_ssl
If you run into another incompatibility like this in the future, use yum search all
. For example:
yum search all mod_ssl
Returns:
mod_ssl.x86_64 : SSL/TLS module for the Apache HTTP Server
mod24_ssl.x86_64 : SSL/TLS module for the Apache HTTP Server
mod_ssl vs mod24_ssl AWS
As @stdunbar said mod_ssl
works with Apache 2.2 and mod24_ssl
works with Apache 2.4.
We can see that the package descriptions are similar except for the Version:
[ec2-user]$ yum info mod_ssl
Available Packages
Name : mod_ssl
Arch : x86_64
Epoch : 1
Version : 2.2.32
Release : 1.9.amzn1
Size : 107 k
Repo : amzn-updates/latest
Summary : SSL/TLS module for the Apache HTTP Server
URL : http://httpd.apache.org/
License : ASL 2.0
Description : The mod_ssl module provides strong cryptography for the Apache Web
: server via the Secure Sockets Layer (SSL) and Transport Layer
: Security (TLS) protocols.
[ec2-user]$ yum info mod24_ssl
Installed Packages
Name : mod24_ssl
Arch : x86_64
Epoch : 1
Version : 2.4.27
Release : 3.71.amzn1
Size : 224 k
Repo : installed
From repo : amzn-updates
Summary : SSL/TLS module for the Apache HTTP Server
URL : http://httpd.apache.org/
License : ASL 2.0
Description : The mod_ssl module provides strong cryptography for the Apache Web
: server via the Secure Sockets Layer (SSL) and Transport Layer
: Security (TLS) protocols.
We can see what each package depends on using yum deplist
:
[ec2-user]$ yum deplist mod_ssl
Loaded plugins: priorities, update-motd, upgrade-helper
26 packages excluded due to repository priority protections
package: mod_ssl.x86_64 1:2.2.32-1.9.amzn1
... snip ...
dependency: httpd = 2.2.32-1.9.amzn1
provider: httpd.x86_64 2.2.32-1.9.amzn1
... snip ...
[ec2-user]$ yum deplist mod24_ssl
Loaded plugins: priorities, update-motd, upgrade-helper
26 packages excluded due to repository priority protections
package: mod24_ssl.x86_64 1:2.4.27-3.71.amzn1
... snip ...
dependency: httpd24 = 2.4.27-3.71.amzn1
provider: httpd24.x86_64 2.4.27-3.71.amzn1
... snip ...
httpd
and httpd24
conflict--you can't have both installed at the same time.
How to install mod_ssl for Apache httpd?
Are any other LoadModule
commands referencing modules in the /usr/lib/httpd/modules
folder? If so, you should be fine just adding LoadModule ssl_module /usr/lib/httpd/modules/mod_ssl.so
to your conf file.
Otherwise, you'll want to copy the mod_ssl.so
file to whatever directory the other modules are being loaded from and reference it there.
Attempting to Deploy Flask App to AWS Beanstalk with SSL: No package mod24_ssl available
Please double check your settings. The mod24_ssl
is only for Amazon Linux 1. The package name for Amazon Linux 2 is mod_ssl
. Maybe you misspell it and use modssl
instead?
Amazon Linux 1 (mod24_ssl)
yum info mod24_ssl
Loaded plugins: priorities, update-motd, upgrade-helper
Available Packages
Name : mod24_ssl
Arch : x86_64
Epoch : 1
Version : 2.4.43
Release : 1.89.amzn1
Size : 122 k
Repo : amzn-updates/latest
Summary : SSL/TLS module for the Apache HTTP Server
URL : http://httpd.apache.org/
License : ASL 2.0
Description : The mod_ssl module provides strong cryptography for the Apache Web
: server via the Secure Sockets Layer (SSL) and Transport Layer
: Security (TLS) protocols.
Amazon Linux 2 (mod_ssl)
yum info mod_ssl
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
Available Packages
Name : mod_ssl
Arch : x86_64
Epoch : 1
Version : 2.4.43
Release : 1.amzn2
Size : 115 k
Repo : amzn2-core/2/x86_64
Summary : SSL/TLS module for the Apache HTTP Server
URL : https://httpd.apache.org/
License : ASL 2.0
Description : The mod_ssl module provides strong cryptography for the Apache Web
: server via the Secure Sockets Layer (SSL) and Transport Layer
: Security (TLS) protocols.
How to install ssl certificate on aws ec2 apache2 ubuntu?
There is a tutorial which have step by step ssl certificate configuration.
Please check the following 2 link:
- Simplest way to Use our SSL Certificates with Amazon EC2 Ubuntu
Server - Configure Apache Web Server on Amazon Linux to use SSL/TLS
Same type of answer is available here:
https://serverfault.com/questions/745408/how-to-enable-ssl-on-ubuntu-apache2-ec2-instance-correctly
Related Topics
How to Gzip Standard in to a File and Also Print Standard in to Standard Out
How to Prefill Command Line Input
Run All Shell Scripts in Folder
Remove Occurrences of String in Text File
How to Grep Exact Literal String (No Regex)
How to Configure the Linux Kernel Within Buildroot
Linux Find Out Hyper-Threaded Core Id
Setting Up a Subdomain with Apache on Linux
Delete Whitespace in Each Begin of Line of File, Using Bash
Linking Boost Library in Linux
Mmap: Will the Mapped File Be Loaded into Memory Immediately
Running R Scripts or Commands with Interpretor in Unix for Unix-Layman
Determine If Relative or Absolute Path in Shell Program
How to Get Original Destination Port of Redirected Udp Message
The Address Where Filename Has Been Loaded Is Missing [Gdb]
Differencebetween Module_Init and Init_Module in a Linux Kernel Module