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

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

    Make sure you're editing the right httpd.conf file, then the error about unreliable server's domain name should be gone (this is the most common mistake).

    To locate your httpd.conf Apache configuration file, run:

    apachectl -t -D DUMP_INCLUDES
    

    Then edit the file and uncomment or change ServerName line into:

    ServerName localhost
    

    Then restart your apache by: sudo apachectl restart

提交回复
热议问题