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

(1)一开始学习php的人都会安装wamp或者xamp或者phpstudy等集成环境软件。但是在现实中,公司服务器端的apache、php、mysql都是自己一个个安装的。

(2)我们说的安装apache,其实是说的安装apache http server软件,所以下载的软件一般名字是httpd-2.2.22-win32-x86之类的。

——官网下载很坑爹,各种网页打不开。还是百度了以下,在华为网盘下载的,是2.2.22版本,此时官方已到2.4.12版本。不过,一样用。

——安装过程,很简单。安装完成后,最好在系统的环境变量中增加一个路径。不然每次写httpd命令的时候,你得用完整的目录路径。

——httpd命令的几个主要选项。用-h可查看帮助。用-m查看可加载模块。用-l查看已加载模块。-t是检查httpd配置文件语法问题。如下:

>>>httpd -t
httpd: Could not reliably determine the server's fully qualified domain name, using 192.168.1.122 for ServerName
Syntax OK

虽然语法没问题,但是有一个类似警告的东西:httpd: Could not reliably determine the server‘s fully qualified domain name, using 192.168.1.122 for ServerName。意思是没找到域名,就是域名设置有问题。

解决方案:修稿httpd.conf配置文件:找到下面这一段,把ServerName前面的#去掉。

我们在安装apache http server软件的时候虽然设置了域名,但是此处没有打开。所以,我们手动打开一下。此时在cmd中再使用httpd -t就不会出现这个警告。

# If your host doesn't have a registered DNS name, enter its IP address here.
#
<span style="color:#FF0000;">#</span>ServerName www.hello.com:80

虽然用httpd -t检查语法不需要重启apache。但是,如果服务器接受这个配置并且生效的话,需要重启apache服务器。

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

时间: 2024-11-06 18:05:27

解决方案:httpd: Could not reliably determine the server's fully qualified domain name的相关文章

httpd: Could not reliably determine the server&#39;s fully qualified domain name(转)

ttpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName 解决办法非常简单: #vim /web/apache/conf/httpd.conf (在这里/web/apahce是我安装apache的目录,你默认安装的话应该是/usr/local/apache2/icons) 找到#ServerName www.example.com:80  

解决httpd: Could not reliably determine the server&#39;s fully qualified domain name

用vim打开 /usr/local/apache2/cong/httpd.conf 将里面的 #ServerName localhost:80 注释去掉即可. 再执行 /usr/local/apache2/bin/apachectl start 然后可以通过浏览器访问 http://localhost:80 ,如果页面显示 “It works!” ,即表示apache已安装并启动成功. 解决httpd: Could not reliably determine the server's full

httpd启动报错httpd: Could not reliably determine the server&#39;s fully qualified domain name

安装完apache-httpd后,启动时报错如下: [[email protected] app]# service httpd start Starting httpd: httpd: apr_sockaddr_info_get() failed for ppt httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName  [  OK  

解决apache启动错误httpd: Could not reliably determine the server&#39;s fully qualified domain name

AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain. Set the 'ServerName' directive globally to suppress this messagehttpd (pid 1068) already running 编辑httpd.conf文件,搜索"#ServerName",添

httpd: Could not reliably determine the server&#39;s fully qualified domain name

[[email protected]~]# /usr/local/apache2/bin/apachectl start httpd: Could not reliably determine the server's fully qualified domain name, usinglocalhost.localdomain for ServerName 分析:该错误信息表示Apache无法彻底确定服务器的完全限定域名只好用using localhost.localdomain for Se

Starting httpd:Could not reliably determine the server&#39;s fully qualified domain name

#service httpd start #Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using 192.168.1.123 for ServerName 解决办法:vi /etc/httpd/conf/httpd.conf   加入一句  ServerName  localhost:80 Starting httpd:Could not reliab

工作经验 部署阿帕奇的时候出现 Starting httpd: httpd: apr_sockaddr_info_get() failed for server1 httpd: Could not reliably determine the server&#39;s fully qualified domain name, using 127.0.0.1 for ServerName

service httpd restart Starting httpd: httpd: apr_sockaddr_info_get() failed for server1 httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName 出现这种原因是因为  httpd.config  的 配置文件出现错 应该把 ServerName  这行

测试Apache服务器及httpd: Could not reliably determine the server&#39;s fully qualified domain name解决办法

测试Apache服务器: 重启apache: sudo /usr/local/apache/bin/apachectl restart 若出现错误: httpd: Could not reliably determine the server's fully qualified domain name...... 解决办法: 1)进入apache的安装目录:(视个人安装情况而不同) [[email protected]]# cd /usr/local/apache/conf 2)编辑httpd.

源码安装Apache,报错:Cannot use an external APR with the bundled APR-util和httpd: Could not reliably determine the server&#39;s fully qualified domain name

一.解决APR和APR-util错误: 1.1.安装APR: [[email protected] httpd-2.2.23]# cd srclib/apr [[email protected] apr]# ./configure --prefix=/usr/local/apr root@ganglia apr]# make && make install 1.2.安装APR-util: [[email protected] apr]# cd ../apr-util/ [[email pr