Apache に mod_ssl をインストールしてエラーになったことにやったこと メモ

NGパターン
モジュール間のコンフリクトが発生してインストールできない

# yum -y install mod_ssl
Loaded plugins: priorities, security, update-motd, upgrade-helper
amzn-main                                                | 2.1 kB     00:00
amzn-updates                                             | 2.3 kB     00:00
48 packages excluded due to repository priority protections
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package mod_ssl.x86_64 1:2.2.24-1.29.amzn1 will be installed
--> Processing Dependency: httpd = 2.2.24-1.29.amzn1 for package: 1:mod_ssl-2.2.24-1.29.amzn1.x86_64
--> Processing Dependency: httpd-mmn = 20051115 for package: 1:mod_ssl-2.2.24-1.29.amzn1.x86_64
--> Running transaction check
---> Package httpd.x86_64 0:2.2.24-1.29.amzn1 will be installed
--> Processing Dependency: httpd-tools = 2.2.24-1.29.amzn1 for package: httpd-2.2.24-1.29.amzn1.x86_64
--> Running transaction check
---> Package httpd-tools.x86_64 0:2.2.24-1.29.amzn1 will be installed
--> Processing Conflict: httpd24-2.4.4-2.41.amzn1.x86_64 conflicts httpd < 2.4.4
--> Processing Conflict: httpd24-tools-2.4.4-2.41.amzn1.x86_64 conflicts httpd-tools < 2.4.4
--> Finished Dependency Resolution
Error: httpd24 conflicts with httpd-2.2.24-1.29.amzn1.x86_64
Error: httpd24-tools conflicts with httpd-tools-2.2.24-1.29.amzn1.x86_64
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest


OKパターン
mod24_sslを使うとよいらしい

# yum  -y install mod24_ssl
Loaded plugins: priorities, security, update-motd, upgrade-helper
amzn-main                                                | 2.1 kB     00:00
amzn-updates                                             | 2.3 kB     00:00
48 packages excluded due to repository priority protections
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package mod24_ssl.x86_64 1:2.4.4-2.41.amzn1 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package         Arch         Version                     Repository       Size
================================================================================
Installing:
 mod24_ssl       x86_64       1:2.4.4-2.41.amzn1          amzn-main       105 k

Transaction Summary
================================================================================
Install       1 Package(s)

Total download size: 105 k
Installed size: 220 k
Downloading Packages:
mod24_ssl-2.4.4-2.41.amzn1.x86_64.rpm                    | 105 kB     00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : 1:mod24_ssl-2.4.4-2.41.amzn1.x86_64                          1/1
  Verifying  : 1:mod24_ssl-2.4.4-2.41.amzn1.x86_64                          1/1

Installed:
  mod24_ssl.x86_64 1:2.4.4-2.41.amzn1

Complete!