Could not reliably determine the server's fully qualified domain name

 아파치 서버 설치후, 서버명을 명시적으로 지정하지 않았다면 아래와 같음 메시지가 뜰 것이다. 물론, 실행은 정상적으로 이루어 진다.
$ sudo service apache2 restart
 * Restarting web server apache2                                                                                                                                                                                                                                                    apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
 ... waiting apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName

 127.0.1.1이 자신을 가르키는 IP이지만, 로컬 IP이기때문에 명시적으로 서버명을 지정할 필요가 있다는 말이다.

 아래와 같이 해결하면 된다.
sudo vi /etc/apache2/httpd.conf
# ServerName
ServerName localhost

댓글 쓰기