MacでApacheのリスタート等を実施すると下記エラーが表示されてしまいます。
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using example.local. Set the 'ServerName' directive globally to suppress this message
いろいろと調べましたが解決しないので、物知りな方ご教授お願いいたします。
■ 確認事項
⒈ 「/etc/hosts」に追加したホスト名と「/etc/apache2/httpd.conf」の「ServerName」は同じものを記載済み。
・/etc/hosts
127.0.0.1 example.local
・/etc/apache2/httpd.conf
ServerName example.local:80
-
「hostname」コマンドで表示されるホスト名も同じもの(example.local)です。
-
「/etc/apache2/extra/httpd-vhosts.conf」ファイルの各バーチャルホストにも一応
「ServerName example.local」を追加してみましたが関係ない?みたいです。
- homebrewで環境構築を実施しました。
・Mac
OS X Yosemite
バージョン 10.10.5
・Apache
Server version: Apache/2.4.10 (Unix)
Server built: Dec 22 2014 18:28:56
・PHP
PHP 5.5.20 (cli) (built: Dec 22 2014 20:35:55)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2015/10/22 10:48