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

前端 未结 13 730
悲&欢浪女
悲&欢浪女 2020-11-29 19:09

I have just installed Apache 2.2.17, and I am using it first time.

Now when I try to start the server using the command service httpd start it gives me

13条回答
  •  执笔经年
    2020-11-29 19:47

    Two things seemed to do it for me:

    1. Put all aliases for 127.0.0.1 in /etc/hosts in a single line (e.g. 127.0.0.1 localhost mysite.local myothersite.local
    2. Set ServerName in my httpd.conf to 0.0.0.0 (localhost or 127.0.0.1 didn't work for me)

    Editing /etc/hosts got rid of long response times and setting the ServerName got rid of OP's warning for me.

提交回复
热议问题