Apache httpdでAH00558: httpd: Could not reliably determineエラーの解決方法

環境
CentOS8.6
Apache 2.4

エラー現象
AH00558: httpd: Could not reliably determine the server’s fully qualified domain name,
using localhost.localhost. Set the ‘ServerName’ directive globally to suppress this message

確認方法
1.確認コマンド
# httpd -V | head -n 1

2.対応方法
localhost.localhost:80)ポート番号をつけます。
# hostnamectl set-hostname localhost.localhost:80

Apache

Posted by arkgame