Translated message

A translation of this page exists in English.

Warning message

This translation is outdated. For the most up-to-date information, please refer to the English version.

Apache を起動する際に "httpd: apr_sockaddr_info_get() failed for domain.com" エラーを取得します

Solution Unverified - Updated -

Environment

  • Red Hat Enterprise Linux 5
  • Red Hat Enterprise Linux 6
  • Apache v2

Issue

  • Apache サービスを開始すると以下のエラーを取得します。

    /etc/init.d/httpd restart
    Stopping httpd:                                            [  OK  ]
    Starting httpd: httpd: apr_sockaddr_info_get() failed for domain.com
    httpd:Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName    [  OK  ]
    

Resolution

  • サーバーに対して FQDN を設定します。FQDN の例は、"host.domain.com" のようになります。

または、

  • Apache に対して "ServerName" を設定します。"ServerName" を設定するには、"/etc/httpd/conf/httpd.conf" に以下を設定します。

    ServerName host.domain.com:80
    

Root Cause

ホスト名が FQDN フォーマットではなく、Apache が "ServerName" を設定できない場合は、デフォルトで "hostname" を "ServerName" として設定します。

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments