• ベストアンサー

Apache Start時に

Apache2.0起動時に Could not determine the server's fully qualified domain name using 127.0.0.1 for ServerName とメッセージが出力されます。 (apachectl start) ただ起動自体は成功してWelcomeページも見えるのですが・・。 Hostsファイルなどは見ましたが「127.0.0.1 」などの記述はありません。 原因は何でしょうか。。 よろしくお願いします。 ちなみにOSはRedhat9です。

noname#17137
noname#17137

質問者が選んだベストアンサー

  • ベストアンサー
  • entree
  • ベストアンサー率55% (405/735)
回答No.2

httpd.conf ファイルに ServerName ディレクティブが存在しない場合、Apache は自分の IP アドレスをベースに DNS を検索し、ServerName を決定しようとします。それもできなければ、メッセージの通り、127.0.0.1 が使用されるのでしょう。 従って、httpd.conf 内に ServerName (IP アドレス) という設定を追加してあげればそのようなメッセージは出なくなるでしょう。

noname#17137
質問者

お礼

ありがとうございました。解決しました!。

その他の回答 (1)

  • anmochi
  • ベストアンサー率65% (1332/2045)
回答No.1

httpd.confの中にServerNameという行が無いのかも知れませぬ。 ServerName siamshade.tld などと言う行を入れてあげよう。

noname#17137
質問者

お礼

ありがとうございました。解決しました!。

関連するQ&A

  • FedorCore3でアパッチをじっこうすると

    httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName という警告がでます /var/www/html/index.html を外部のPCから見ることができるのでなんとか動作していると思います この警告の問題を解決するにはどうしたらいいでしょうか?

  • MacOSX server の apacheとPHPのインストール後

    MAC OSX Server 10.2.3に apache1.3.27とPHP4.2をコンパイルしてインストールまではいけたのですが・・・。 apacheを再起動しなおそうとすると ---------------------------------------------- #apachectl graceful /usr/sbin/apachectl graceful: httpd not running, trying to start [Tue Jan 14 17:41:27 2003] [alert] apache: Could not determine the server's fully qualified domain n ame, using 127.0.0.1 for ServerName /usr/sbin/apachectl graceful: httpd could not be started ----------------------------------------------- と表示されてしまいます。 /etc/httpd/httpd.confのservernameを設定したのですが 変化ありません。 ご助言いただけると幸いです。 <インストールに参考にしたページ> http://php3.info/manual/ja/install.macosx.php

    • 締切済み
    • Mac
  • apache2.2が起動できません

    apacheをインストールして起動させようとしたところcmdで httpd.exe.Could not relibly determine the server's fully qualified domain name,using 192.168.1.3 for servername というメッセージが出たので,そのメッセージを調べてedit httpd.confのServerName localhost:8080とあったのをServerName 192.168.0.1:8080という風に書き換えて,上書き保存しました. しかし,localhostに繋いで見ても前と変わらず,ページが見つからないと出ます. 一応ポート番号などの重複も調べて見ましたが,特に問題はありませんでした. 一体何が問題なのでしょうか ちなみにOSはwindows7 premiumでapacheのインストール場所はCドライブの直下にapache2.2を作りました

  • fedora14でapacheを起動すると

    次のようなウォーニングメッセージが出ました # service httpd start httpd を起動中: httpd: Could not reliably determine the server's fully qualified domain name, using ::1 for ServerName [ OK ] # このウォーニングメッセージの意味することと回避するための対処方法を教えてください よろしくお願いします

  • Linux(Redhat7.3)にApapche2がインストールできない

    題名どおりです。 http://www.itboost.co.jp/inst/inst_49.php に忠実にやりましたが /usr/local/apache2/bin/apachectl start とやったところ、 httpd: Could not determin the server's fully qualified domain name, using 127.0.0.1 for ServerName だそうです。 help me, please!!

  • Linux(Fedora9)

    Tomcat(6.0.18)とApache(2.2.11)の連携がうまくいきません。 Tomcatは起動・終了ができるのですが、Apacheの起動・終了がうまくいきません。(下記参照) apr_sockaddr_info_get() failed for saoi Could not reliably determine the server's fully qualified domain name,using 127,0,0,1 for SerVerName 皆様ご教授お願い致します。

  • Apache HTTP Server

    インストール時にIP番号 「127.0.0.1」にApache HTTP Serverを設定し、Apache の「htdocs」 にhello.cgiというファイルを保存したのに、 1. Apacheを立ち上げると httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.131.65 for ServerName とエラー表示(?)されます。 2. URLを「http://127.0.0.1/hello.cgi」と指定してもブラウザ(FireFox)には 「127.0.0.1 のサーバへの接続を確立できませんでした。」とエラーになります。 何がいけないのでしょうか? どなたか教えてくださると幸甚です。

  • httpd(apache)が起動しない

    RedHatLinux8.0を用いてサーバーを立てようとしている初心者です。webサーバーを立てようとして、 httpd-2.0.40-8.i386.rpmを rpm -ihv としてインストールしました。 次に /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 [失敗] と言われて起動ができません。ネット上で見ると、同じエラーが出ていても起動ができている方もおられるようで、よく わかりません。どうしたら起動できるのでしょうか。 初歩的な質問で申し訳ありません。 よろしくおねがいします。

  • apacheとtomcatの連携

    wpでapache2.2とtomcat5の連携を行いたいのですが apacheを再起動すると下記のエラーが出ます。 何が悪いですか? httpd.confの最後の行を削除すると起動ができるようになります。 #Include conf/extra/httpd-proxy.conf apacheのエラーログ: [Wed Sep 16 06:09:13 2009] [warn] pid file C:/Program Files/Apache Software Foundation/Apache2.2/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run? [Wed Sep 16 06:09:13 2009] [notice] Apache/2.2.13 (Win32) configured -- resuming normal operations [Wed Sep 16 06:09:13 2009] [notice] Server built: Aug 6 2009 15:50:50 [Wed Sep 16 06:09:13 2009] [notice] Parent: Created child process 1712 httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.0.3 for ServerName httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.0.3 for ServerName [Wed Sep 16 06:09:13 2009] [notice] Child 1712: Child process is running [Wed Sep 16 06:09:13 2009] [notice] Child 1712: Acquired the start mutex. [Wed Sep 16 06:09:13 2009] [notice] Child 1712: Starting 64 worker threads. [Wed Sep 16 06:09:13 2009] [notice] Child 1712: Starting thread to listen on port 80. [Wed Sep 16 06:23:14 2009] [notice] Parent: Received restart signal -- Restarting the server. [Wed Sep 16 06:23:14 2009] [notice] Child 1712: Exit event signaled. Child process is ending. httpd.exe: Syntax error on line 487 of C:/Program Files/Apache Software Foundation/Apache2.2/conf/httpd.conf: Syntax error on line 7 of C:/Program Files/Apache Software Foundation/Apache2.2/conf/extra/httpd-proxy.conf: </Location> without matching <Location> section [Wed Sep 16 06:23:14 2009] [warn] (OS 995)スレッドの終了またはアプリケーションの要求によって、I/O 処理は中止されました。 : winnt_accept: Asynchronous AcceptEx failed. [Wed Sep 16 06:23:15 2009] [notice] Child 1712: Released the start mutex [Wed Sep 16 06:23:16 2009] [notice] Child 1712: All worker threads have exited. [Wed Sep 16 06:23:16 2009] [notice] Child 1712: Child process is exiting httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.0.3 for ServerName [Wed Sep 16 06:23:36 2009] [warn] pid file C:/Program Files/Apache Software Foundation/Apache2.2/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run? [Wed Sep 16 06:23:36 2009] [notice] Apache/2.2.13 (Win32) configured -- resuming normal operations [Wed Sep 16 06:23:36 2009] [notice] Server built: Aug 6 2009 15:50:50 [Wed Sep 16 06:23:36 2009] [notice] Parent: Created child process 1728 httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.0.3 for ServerName httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.0.3 for ServerName [Wed Sep 16 06:23:36 2009] [notice] Child 1728: Child process is running [Wed Sep 16 06:23:36 2009] [notice] Child 1728: Acquired the start mutex. [Wed Sep 16 06:23:36 2009] [notice] Child 1728: Starting 64 worker threads. [Wed Sep 16 06:23:36 2009] [notice] Child 1728: Starting thread to listen on port 80.

    • ベストアンサー
    • Java
  • apache2.2-tomcat6.0の連携のエラーについて

    apache2.2-tomcat6.0の連携のエラーについて apache、tomcatをインストール後、 apacheのhttpd.confにて以下の手順で設定を行いましたが 「http://localhost/」にアクセスすると tomcatのトップページが表示されず、 「Service Temporarily Unavailable」と表示されてしまいます。 正常に連携させるにはどのようにしたらよろしいでしょうか? 「http://localhost:8080/」にアクセスした場合は tomcatのトップページが正常に表示されます。 ■手順 1、以下の行のコメントアウトを解除。    LoadModule proxy_module modules/mod_proxy.so    LoadModule proxy_ajp_module modules/mod_proxy_ajp.so 2、最後にhttpd.conf末尾に以下の内容を記述。    <Location />     ProxyPass ajp://localhost:8009/    </Location> ■apacheのエラーログには以下のように出力されました。 httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.100.2 for ServerName [Tue Jul 13 21:24:49 2010] [notice] Apache/2.2.15 (Win32) configured -- resuming normal operations [Tue Jul 13 21:24:49 2010] [notice] Server built: Mar 4 2010 11:27:46 [Tue Jul 13 21:24:49 2010] [notice] Parent: Created child process 3164 httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.100.2 for ServerName httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.100.2 for ServerName [Tue Jul 13 21:24:49 2010] [notice] Child 3164: Child process is running [Tue Jul 13 21:24:49 2010] [notice] Child 3164: Acquired the start mutex. [Tue Jul 13 21:24:49 2010] [notice] Child 3164: Starting 64 worker threads. [Tue Jul 13 21:24:49 2010] [notice] Child 3164: Starting thread to listen on port 80. [Tue Jul 13 21:25:23 2010] [error] (OS 10061)対象のコンピューターによって拒否されたため、接続できませんでした。 : proxy: AJP: attempt to connect to 127.0.0.1:8009 (localhost) failed [Tue Jul 13 21:25:23 2010] [error] ap_proxy_connect_backend disabling worker for (localhost) [Tue Jul 13 21:25:23 2010] [error] proxy: AJP: failed to make connection to backend: localhost

    • ベストアンサー
    • Java