Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name 解决
原文地址: http://digitaldeviation.com/articles/linux/apache-error-could-not-reliably-determine-the-servers-fully-qualified-domain-name
When starting Apache for the first time or after a networking change you get the following error:
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
This message is more of a warning than an error. If you check your running processes you will see the httpd process running. Basically Apache is telling you that it doesn't know the host name of your server. This is a simple fix.
Note that the instructions below are for CentOS/Redhat. They may be similar for your distro. You will need to know your IP address and the host name for your server. I will use Server1.example.com as the host name and 192.168.20.100 as the IP address.
http://www.wallpaperama.com/forums/how-to-fix-could-not-determine-the-servers-fully-qualified-domain-name-t23.html
127.0.0.1 localhost
123.123.123.123 hostname.domain.de hostname
The fix is to edit the conf file and add in the ServerName setting (as the error message requests). In other words,
sudo vi /etc/apache2/httpd.conf
by adding the following string:,
# ServerName is to be specified to avoid warning during reload
ServerName MYSERVER
總結
以上是生活随笔為你收集整理的Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name 解决的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 利用iptables来配置linux禁止
- 下一篇: CentOS 6.0 系统 LAMP(A