启动apache时出现httpd: Could not reliably determine the server

启动apache时出现

[root@centos apache2]# /usr/local/apache2/bin/apachectl start
httpd: Could not reliably determine the server's fully qualified domain ">name, using 121.10.40.155 for ServerName

现在提供该问题的解决方法

1)进入apache配置文件的目录:(视个人安装情况而不同)

[root@centos /]# cd /etc/httpd //我安装时配置文件所在的目录为/etc/httpd

2)编辑httpd.conf文件,搜索"#ServerName",添加ServerName localhost:80

[root@centos httpd]# ls
conf.d  extra  httpd.conf  magic  mime.types  original

[root@centos httpd]# vi httpd.conf

#
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If your host doesn't have a registered DNS name, enter its IP address here.
#
#ServerName www.example.com:80
更改为:

ServerName localhost:80

3)再重新启动apache 即可。

[root@centos httpd]# /usr/local/apache2/bin/apachectl restart

OK,启动成功啦!

时间: 2024-10-24 13:33:50

启动apache时出现httpd: Could not reliably determine the server的相关文章

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

[root@luozhonghua sbin]# service httpd start Starting httpd: httpd: apr_sockaddr_info_get() failed for luozhonghua httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName (98)Address already in use

apache启动错误提示:httpd: Could not reliably determine the server

错误提示 在系统启动时apache,没有启动起来,查看"事件查看器"发现报一些错误: The Apache service named  reported the following error: >>> httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.0.200 for ServerName   解决办法 1)进入apach

解决apache启动错误"httpd:Could not reliably determine

启动apache遇到错误:httpd: Could not reliably determine the server's fully qualified domain name [root@server httpd-2.2.4]# /usr/local/apache/bin/apachectl start httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 f

apache无法启动提示httpd.exe: Could not reliably determine the server

查看日志发现 The Apache service named  reported the following error: >>> httpd.exe: Could not reliably determine the server's fully qualified domain name, using 222.73.219.52 for ServerName  百度搜索一下说是端口问题,我查一下 在windows命令行窗口下执行: C:/>netstat -aon|finds

在XAMPP v3.2.1中,启动apache时,弹出“directive 'register_globals' is no longer availble in PHP”警告。

        最近,玩WordPress的时候,曾经修改过php.ini中全局变量的属性:register_globals,本来值是Off,但在学习的过程中,为了能够使用某些原有的函数,故而将其属性值改为On.这样导致一个警告,这个警告并不是在运行php文件时弹出的,而是每次启动apache服务器的时候,两次弹出一个警告框.         directive 'register_globals' is no longer availble in PHP.         所以,一旦出现这样的

apache启动报错:httpd: apr_sockaddr_info_get() failed_Linux

重启apache:service httpd restart虽然重启成功,但却给出如下的提示信息:httpd: apr_sockaddr_info_get() failed for hoteelhttpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName 究其原因是因为在配置DNS的时候hostname hoteel造成的,重新hostnam

apache虚拟主机配置-php在配置apache虚拟主机时启动虚拟主机配置后就无法启动apache

问题描述 php在配置apache虚拟主机时启动虚拟主机配置后就无法启动apache 在httpd.conf 配置虚拟主机: Virtual hosts ,虚拟主机 Include conf/extra/httpd-vhosts.conf 将上一句Include这句话打开后,apache就无法启动了,而且其他的配置都检查了,没有问题. 查看了error.log (部分log)是这样的: Starting the Apache2.2 service The Apache2.2 service is

本地计算机无法启动Apache故障处理_php技巧

最近因工作需要,要学习PHP的基础编程,于是学习架设PHP工作环境. 但按照教材上介绍的那样,安装了WMAP后,一直无法运行成功.后发现Apache一直都不在运行状态.到WMAP中的Apache选项中去选择启动但无法启动. 后经高人指点,总结出如下可能性无法启动Apache: 可能情况一: 安装Apache2的路径中不能含有中文. 可能情况二: 重启Apache就会弹出出错提示框,提示"The requested operation has failed!" 然后打开服务,启动Apac

tomcat-Myeclipce启动项目时后台日志,求大神看一下这是怎么回事!

问题描述 Myeclipce启动项目时后台日志,求大神看一下这是怎么回事! org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [cn.westcatr.nananiot.HomeController] for bean with name 'homeController' defined in file [F:WorkspacesMyEclipse Professional.me