WordPressのカスタマイズとプラグイン、CSSテクニック、SEOの話題など。
In: apache
25 5月 2009Apacheを再起動した際に、
httpd: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName
というエラーが出る場合がある。
これでも起動はするので、Apache自体は動くのだが、エラーをそのままにしておくのは気持ちが悪いし、あとあと問題を引き起こす可能性が高い。
日本語訳をすると
ServerNameに127.0.0.1を使用した、FQDN(完全に適切なドメイン名)が確定できませんでした。
といった感じか。
このエラーは、/etc/hosts にlocalhost以外に自分で設定したホスト名が、Apacheの設定ファイルに定義されていないために発生する。
# Do not remove the following line, or various programs # that require network functionality will fail. 127.0.0.1 dacelo localhost.localdomain localhost
と書いた場合、/etc/httpd/conf/httpd.conf のServerNameの設定にも次のように書いておく。
# ServerName gives the name and port that the server uses to identify itself. # This can often be determined automatically, but we recommend you specify # it explicitly to prevent problems during startup. # # If this is not set to valid DNS name for your host, server-generated # redirections will not work. See also the UseCanonicalName directive. # # If your host doesn't have a registered DNS name, enter its IP address here. # You will have to access it by its address anyway, and this will make # redirections work in a sensible way. # #ServerName www.example.com:80 ServerName dacelo:80
ここは、SE見習いである私ことdaceloが、日夜習得していくシステム関連の備忘録、phpやWordPressTipsのネタ、あるいはSEOやWebマーケティング関連の雑感を投稿するブログです。 平日は大体毎日投稿しています。土日は休業日です。
3 Responses to Apacheのエラー:Could not reliably determine the server’s fully qualified domain name…
匿名
3月 15th, 2010 at 11:56 AM
参考になりました。ありがとうございます(^^
つねお
4月 12th, 2010 at 10:33 AM
解決できました!ありがとうございました。
匿名
5月 14th, 2010 at 9:01 PM
大変参考になりまりました。
いつも気になっていたのですが、無視してました。
こんなに簡単に直るとは・・・。
有難うございました。