AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message 해결하기

시스템운영/Apache+PHP|2016.01.18 18:14

 

 

 

AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message 안보이게 하기 

 

1. 서버 환경

OS : Ubuntu 14.04 LTS

 

Apache2 :

 

Server version: Apache/2.4.7 (Ubuntu)

Server built: Apr 3 2014 12:20:28

Server's Module Magic Number: 20120211:27

Server loaded: APR 1.5.1-dev, APR-UTIL 1.5.3

Compiled using: APR 1.5.1-dev, APR-UTIL 1.5.3

Architecture: 64-bit

Server MPM: prefork

threaded: no

forked: yes (variable process count)

Server compiled with....

-D APR_HAS_SENDFILE

-D APR_HAS_MMAP

-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)

-D APR_USE_SYSVSEM_SERIALIZE

-D APR_USE_PTHREAD_SERIALIZE

-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT

-D APR_HAS_OTHER_CHILD

-D AP_HAVE_RELIABLE_PIPED_LOGS

-D DYNAMIC_MODULE_LIMIT=256

-D HTTPD_ROOT="/etc/apache2"

-D SUEXEC_BIN="/usr/lib/apache2/suexec"

-D DEFAULT_PIDLOG="/var/run/apache2.pid"

-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"

-D DEFAULT_ERRORLOG="logs/error_log"

-D AP_TYPES_CONFIG_FILE="mime.types"

-D SERVER_CONFIG_FILE="apache2.conf"

 

2. 오류 메시지 

아파치 서비스 재시작중 가끔 아래와 같은 메시지를 볼수 있다.

 

물론 아래와 같은 메시지가 있다고 해서 서비스가 안되는건 아니지만 찝찝하므로 3.번과 같이 조치하도록 하자

 

root@test:/etc/apache2/sites-enabled# service apache2 restart

* Restarting web server apache2

AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message [ OK ]

root@test:/etc/apache2/sites-enabled#

3. 해결 방법

root@test:/etc/apache2/sites-enabled# vi /etc/apache2/apache2.conf

ServerName localhost

 

 

/etc/apache2/apache2.conf 파일의 가장 마지막 부분에 ServerName localhost 값을 추가하고 아파치 서비스를 재시작 하면

위와 같은 메시지는 출력되지 않는다.

 


 

 

 

 

 

 

댓글()