Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationEventAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
45
Help us understand the problem. What are the problem?

More than 3 years have passed since last update.

@pugiemonn

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

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

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

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
45
Help us understand the problem. What are the problem?