|
Contributed at: 2004/11/15 (Mon) 15:59
|
Apache 起動時、表題のようなエラーが出る。
[root@sion zem]# /etc/rc.d/init.d/httpd start
httpd を起動中: httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1
for ServerName
[ OK ]
訳すると『 httpd: 127.0.0.1 に対しては的確なドメイン名が割り当てられていません 』といった所。
初期状態では apache の設定ファイル /etc/httpd/conf/httpd.conf で【 ServerName 】がコメントされている。何かサーバ名を与えておけば、エラーは出なくなるだろう。
IP アドレスで運用テストを行うため、【 192.168.11.253 】と記述する。
ServerName 192.168.11.253:80
# diff -u httpd.conf.2004-1115 httpd.conf
--- httpd.conf.2004-1115 2004-10-16 00:41:08.000000000 +0900
+++ httpd.conf 2004-11-15 15:41:27.192257864 +0900
@@ -246,7 +246,7 @@
# You will have to access it by its address anyway, and this will make
# redirections work in a sensible way.
#
-#ServerName new.host.name:80
+ServerName 192.168.11.253:80
このように適当な名前を ServerName で割り当てると、エラーを吐かなくなる。
[root@sion conf]# /etc/rc.d/init.d/httpd start
httpd を起動中: [ OK ]
ちなみに Fedora Core では初期状態で apche 2.0 がセットアップされている。
Fedora core 3 では apache 2.0.52 がセットアップされていた。
# rpm -qi httpd
Name : httpd Relocations: (not relocatable)
Version : 2.0.52 Vendor: Red Hat, Inc.
Release : 3 Build Date: 2004年10月16日 00時41分15秒
Install Date: 2004年11月13日 19時53分27秒 Build Host: tweety.build.redhat.com
Group : システム環境/デーモン Source RPM: httpd-2.0.52-3.src.rpm
Size : 2407463 License: Apache Software License
Signature : DSA/SHA1, 2004年10月21日 02時19分42秒, Key ID b44269d04f2a6fd2
Packager : Red Hat, Inc.
URL : http://httpd.apache.org/
Summary : httpd Webサーバー
Description :
このパッケージは、Apache Software Foundationの功績を基にした強力で
充実した機能と効率を持つフリーのWebサーバーです。またこれは
インターネット上で最も人気のあるWeb サーバーです。
[分類 /linux/FedoraCore3 ]
固定リンク
|