目次

httpd起動時に 「httpd: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName」メッセージが表示される

目次

Linuxでhttpd起動時に

httpd: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName

が表示される場合の対象法を紹介します。
httpd起動時に 「httpd: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName」メッセージが表示される:画像1

原因

httpd.confにホスト名でServerName が定義されていないことが原因です。

対処法

/etc/sysconfig ファイルを開き、ホスト名を確認します。"shouji.ic.ipentec.com"であることが確認できます。
httpd起動時に 「httpd: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName」メッセージが表示される:画像2

httpd.conf ファイルを開きます。ServerName の項目を表示します。コメントアウトされており、ServerNameが設定されていないことがわかります。
httpd起動時に 「httpd: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName」メッセージが表示される:画像3

/etc/Sysconfig で調べたホスト名を httpd.conf のServerNameに記述します。
httpd起動時に 「httpd: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName」メッセージが表示される:画像4

httpdを再起動します。警告メッセージが表示されなくなりました。
httpd起動時に 「httpd: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName」メッセージが表示される:画像5

AuthorPortraitAlt
著者
かつて日本を代表したスーパーエンジニア (自称)
ハードウェア、電気設備、ガーデニング関係の記事を担当。
作成日: 2015-06-19
Copyright © 1995–2025 iPentec all rights reserverd.