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

Apache(httpd)起動時に次のようなエラーが出ることがあります。

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

[参考記事] Apacheのインストール
[参考記事] Apacheをyumでインストールする

意味は『ServerNameに127.0.0.1を使用した、FQDN(ドメイン名)が確定できませんでした。』

Apacheの設定と、サーバ自身の名前の設定と、それに紐付けられたIPの設定を確認します。

このホスト名が同一に設定されていないと出るメッセージです。

/etc/httpd/conf/httpd.conf

ServerName example.com:80

/etc/hosts

127.0.0.1    example.com localhost.localdomain localhost

/etc/sysconfig/network

HOSTNAME=example.com

関連記事

スポンサーリンク

Symfonyのインストール

ホームページ製作・web系アプリ系の製作案件募集中です。

上に戻る