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

前端 未结 12 1728
悲&欢浪女
悲&欢浪女 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:19

    I've resolved the fully qualified domain name message on different occasions by adding my server hostname to the /etc/apache2/httpd.conf file and to the /etc/apache2/apache2.conf file.

    Type hostname -f in your terminal. This query will return your hostname.

    Then edit the /etc/apache2/httpd.conf file (or create it if it does not exist for some reason) and add ServerName .

    Alternatively, I have also been able to eliminate the message by adding ServerName to the /etc/apache2/apache2.conf file.

    If all goes well, when you restart Apache, the message will be gone.

提交回复
热议问题