在安装yum php-devel之后,Centos 5使用不同的httpd.conf重新启动Apache服务器

时间:2012-06-15 09:21:08

标签: linux centos

目前,我正在使用Centos 5来运行linux服务器。

前一天,我在ssh上使用'yum php-devel'安装了php-devel。

我尝试使用此命令重启Apache服务器

service httpd restart

但是,apache服务器会读取不同的httpd.conf文件。

它假设读取位于'/usr/local/apache/conf/httpd.conf'文件的httpd.conf文件

但是,它现在读取'/etc/httpd/conf/httpd.conf'。

因此,它会出现此错误。

httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs

你知道为什么会这样吗?

有没有办法在Apache服务器重启时重置httpd.conf文件的方向?

1 个答案:

答案 0 :(得分:0)

我想出了这个。

问题是服务器使用了不同的httpd.conf文件。

所以我再次检查了路由并将其更改为原始的httpd.conf路由。