반응형
httpd(Apache) 서버의 정규화된 도메인 이름을 인식하지 못해서 발생하는 경고 메시지
경고 메시지
$ apachectl start
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
해결 방법
Apache 설정 파일에 ServerName을 명시적으로 지정하면 해결됩니다.
CentOS
ServerName 설정 추가
echo "ServerName $(hostname -f)" >> /etc/httpd/conf/httpd.conf
(또는) 직접 설정
vim /etc/httpd/conf/httpd.conf
...
(원본) #ServerName www.example.com:80
(수정) ServerName 127.0.0.1:80
...
Apache 재시작
systemctl restart httpd
Ubuntu
echo "ServerName $(hostname -f)" | sudo tee /etc/apache2/conf-available/servername.conf
sudo a2enconf servername
sudo systemctl restart apache2
728x90
반응형
'리눅스' 카테고리의 다른 글
PHP configure (1) | 2013.06.25 |
---|---|
mysqldump 명령어를 사용하여 MySQL 데이터베이스를 백업하고 복원하는 방법 (0) | 2013.06.25 |
MySQL에서 root 계정의 패스워드를 잊어버렸을 때 복구하는 방법 (0) | 2013.06.24 |
MySQL의 일반 로그(general log)를 삭제하는 방법 (0) | 2013.06.24 |
[리눅스] 2TB 이상의 디스크를 사용하기 위한 방법(GPT 파티션 설정) (0) | 2013.06.24 |