httpd起動時にfailedが発生する件 [LINUX]
ちゃんとhttpd.confをセットアップしておかないと、httpd起動時に以下のメッセージが表示される。
# /etc/rc.d/init.d/httpd restart
httpd を停止中: [ OK ]
httpd を起動中: httpd: apr_sockaddr_info_get() failed for mproject04.comco.co.jp
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
実害はなさそうだが、やっぱりfailedと言われるのは気分が悪いもの。
エラーメッセージに書かれている通り、ServerNameの設定が不完全である。
そこで/etc/httpd/conf/httpd.confを編集する。
ServerNameで検索すると、以下の通りコメントアウトになっている。
というわけでコメントをはずして、host名を設定する。
#ServerName www.example.com:80
↓
↓
ServerName hogehoge.example.com
これでfailedメッセージは表示されなくなる。
[root@mproject04 plugins]# /etc/rc.d/init.d/httpd start
httpd を起動中: [ OK ]
# /etc/rc.d/init.d/httpd restart
httpd を停止中: [ OK ]
httpd を起動中: httpd: apr_sockaddr_info_get() failed for mproject04.comco.co.jp
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
実害はなさそうだが、やっぱりfailedと言われるのは気分が悪いもの。
エラーメッセージに書かれている通り、ServerNameの設定が不完全である。
そこで/etc/httpd/conf/httpd.confを編集する。
ServerNameで検索すると、以下の通りコメントアウトになっている。
というわけでコメントをはずして、host名を設定する。
#ServerName www.example.com:80
↓
↓
ServerName hogehoge.example.com
これでfailedメッセージは表示されなくなる。
[root@mproject04 plugins]# /etc/rc.d/init.d/httpd start
httpd を起動中: [ OK ]
2015-09-02 15:51
nice!(0)
コメント(0)
トラックバック(0)
コメント 0