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

前端 未结 12 1721
悲&欢浪女
悲&欢浪女 2020-12-04 05:44

I tried to restart my Apache server on CentOS 5.0 and got this message:

httpd: Could not reliably determine the server\'s fully qualified domain name,

12条回答
  •  借酒劲吻你
    2020-12-04 06:16

    There are two ways to resolve this error:

    1. Include /etc/apache2/httpd.conf

      Add the above line in file /etc/apache2/apache2.conf

    2. Add this line at the end of the file /etc/apache2/apache2.conf:

      ServerName localhost

提交回复
热议问题