49
42

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Apacheでhttpd: Could not reliably determine the server's fully qualified domain nameと言われる解決方法

Last updated at Posted at 2016-03-15

httpd 起動時にエラーが出ました。

httpd を起動でエラー

httpd を起動します。

httpdを起動
service httpd start

httpd を起動中: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain for ServerName

起動はできるのですが、毎回メッセージがでるのがちょっといやです。

ServerName を指定する

httpd.conf に ServerName を書けばいいみたいです。

vi /etc/httpd/conf/httpd.conf

ServerName hogepiyo:80

ServerName に hogepiyo のように何か適当な文字列を書きます。

httpdを再度起動

もう一度起動を試します。

httpdを起動
service httpd restart

今度はエラーが消えました(☝ ՞ਊ ՞)☝

49
42
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
49
42

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?