메뉴 닫기

httpd: Could not determine the server’s fully qualified domain name, 에러 설정

httpd: Could not determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName

 > apache 실행 시 해당오류를 출력하면서 정상적으로 실행이 안되는 경우가 있습니다.

apache error.log

[alert] (EAI 2)Name or service not known: mod_unique_id: unable to find IPv4 address of “도메인명”

 > apache error.log 를 확인하면 해당 에러문이 출력되어 있는 점 확인 할 수 있습니다.

 

vi /etc/hosts
127.0.0.1       localhost localhost.localdomain localhost 도메인명

 > /etc/hosts

vi /etc/sysconfig/network
HOSTNAME=도메인명

> hostname을 같게 설정해주어야 정상적으로 실행 되는 부분 입니다.

– 이후에 /etc/init.d/apache restart 하면 정상적으로 실행  확인을 할 수 있습니다.

[polldaddy rating=”7739789″] 

답글 남기기

이메일 주소는 공개되지 않습니다. 필수 항목은 *(으)로 표시합니다