玄箱HG(lenny) Apache2 再起動時に警告がでる
apache2 再起動やら設定リロードなどで下記エラーが出る場合の対処
エラー内容
以下のようなログがでる
Could not reliably determine the server's fully qualified domain name, using 192.168.24.2 for ServerName
... waiting apache2: Could not reliably determine the server's fully qualified domain name, using 192.168.24.2 for ServerName
...done.
対処
cd /etc/apache2
vi apache2.conf
### Section 1: Global Environment
#
# The directives in this section affect the overall operation of Apache,
# such as the number of concurrent requests it can handle or where it
# can find its configuration files.
#
Servername サーバ名
↑これ追加
確認
/etc/init.d/apache2 restart
Restarting web server: apache2 ... waiting ..
→ エラーがでなくなった!