原文地址: 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.

  1. Edit /etc/hosts using your favorite editor The contents should look something like this:# Do not remove the following line, or various programs # that require network functionality will fail. 127.0.0.1 localhost.localdomain localhost ::1 localhost6.localdomain6 localhost6
  2. At the end of the file add: 192.168.20.100 Server1.example.com That's a [tab] between the IP address and the host name
  3. Save the file
  4. Restart the network services to apply your changes service network restart
  5. Restart Apache service httpd restart

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 解决相关推荐

  1. Apache启动时报Could not reliably determine the server's fully qualified domain name

    在系统启动时apache,没有启动起来,查看"事件查看器"发现报一些错误: The Apache service named  reported the following err ...

  2. httpd: Could not reliably determine the server's fully qualified domain name

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

  3. Apache windows启动时报错 httpd: Could not reliably determine the server's fully qualified domain name...

    Apache windows启动调试时报错或警告 httpd: Could not reliably determine the server's fully qualified domain nam ...

  4. 解决httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0

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

  5. httpd: Could not reliably determine the server‘s fully qualified domain name

    AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using localho ...

  6. 解决httpd: Could not reliably determine the server's fully qualified domain name

    启动apache遇到错误:httpd: Could not reliably determine the server's fully qualified domain name [root@serv ...

  7. mac下httpd: Could not reliably determine the server's fully qualified domain name, using

    mac下出现httpd: Could not reliably determine the server's fully qualified domain name, using MacBook-Pr ...

  8. 解决AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using local

    一.启动apache遇到错误: httpd: Could not reliably determine the server's fully qualified domain name 二·.修改配置 ...

  9. 解决AH00558: httpd: Could not reliably determine the server‘s fully qualified domain name, using local

    1.启动apache遇到错误: httpd: Could not reliably determine the server's fully qualified domain name 2·.修改ht ...

最新文章

  1. c++详解【智能指针】
  2. 防止头文件重复包含之pragma once与#ifndef
  3. jssdk 保存文件到手机_手机混用闪存到底是真是假?教你查手机闪存型号
  4. mysql的常用命令总结
  5. 探索 OpenStack 之(7):Neutron 深入探索之 Open vSwitch (OVS) + GRE 之 Neutron节点篇
  6. FeliCa简介____带命令协议说明
  7. pdf阅读器怎么样去拆分文档啊
  8. 硬盘重新分区,给C盘重新分配空间
  9. python - 例题分析:工时与工资
  10. MySQL基础学习_第016章节_简单的查询语句
  11. SpringCloud之蓝绿部署
  12. 2022081班李亚楠20220920
  13. java中String与int/float/double/byte/数组
  14. apache atlas 编译包下载
  15. 如何提高效率By Aaron Swartz (转载)
  16. Java的诞生以及发展
  17. IStat Menus 5.02 5.03 的注册码
  18. 修改YAML/YML文件的字体颜色
  19. 单目相机空间定位文献阅读
  20. Minecraft 1.16.5模组开发(二十八) 自定义生态群系(biome)

热门文章

  1. 自动化监控--zabbix中的Macros(宏)详解
  2. NRF52810能不能替代NRF52832
  3. JPA注解@GeneratedValue
  4. 笔记--待解决,整理
  5. 【GDAL】聊聊GDAL的数据模型(二)——Band对象
  6. ASP.NET Web 表单
  7. windows自动更新安装后遗留文件或文件夹的删除
  8. 取IDE当前文档所在项目的目录[vs.net2008]
  9. RHEL7切换Firewall为iptables
  10. wince下的蓝牙串口通信