$theTitle=wp_title(" - ", false); if($theTitle != "") { ?>
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
Related posts:
Related posts brought to you by Yet Another Related Posts Plugin.
ここは、SE見習いである私ことdaceloが、日夜習得していくシステム関連の備忘録、phpやWordPressTipsのネタ、あるいはSEOやWebマーケティング関連の雑感を投稿するブログです。 平日は大体毎日投稿しています。土日は休業日です。
14 Responses to Apacheのエラー:Could not reliably determine the server’s fully qualified domain name…
トラックバックURL:snsn9pan
11月 12th, 2009 at 7:26 PM
httpd.confをいじるべし
匿名
3月 15th, 2010 at 11:56 AM
参考になりました。ありがとうございます(^^
つねお
4月 12th, 2010 at 10:33 AM
解決できました!ありがとうございました。
匿名
5月 14th, 2010 at 9:01 PM
大変参考になりまりました。
いつも気になっていたのですが、無視してました。
こんなに簡単に直るとは・・・。
有難うございました。
とくめい
9月 9th, 2010 at 6:25 PM
なるほどです。ありがとうございました。
ダリ
10月 18th, 2010 at 11:57 AM
Linux初心者なので大変助かりました。
ありがとうございました。
dacelo
10月 19th, 2010 at 12:11 PM
お役に立てて何よりです!
匿名
3月 5th, 2011 at 3:20 PM
参考になりました。
ありがとうございました。
Keigo
5月 16th, 2011 at 7:44 PM
解決できました。
齋藤 南郷
6月 19th, 2011 at 2:14 PM
よくあるApatcheのエラー / Apacheのエラー:Could not reliably determine the server’s fully qualified domain name… | apache | 『Weblog… http://htn.to/v7Q5SQ
saitounangou
6月 19th, 2011 at 11:14 PM
よくあるApatcheのエラー / Apacheのエラー:Could not reliably determine the server’s fully qualified domain name… | apache | 『Weblog… http://htn.to/v7Q5SQ
saitounangou
6月 19th, 2011 at 11:14 PM
よくあるApatcheのエラー
rin1024
8月 29th, 2011 at 2:05 AM
lionインストール時に出た。ServerName localhost:80にとりあえずしといた。
clazybone
9月 19th, 2011 at 11:54 PM
チェック