【问题标题】:Centos 5 restarts Apache server with different httpd.conf after I install yum php-devel安装 yum php-devel 后,Centos 5 使用不同的 httpd.conf 重新启动 Apache 服务器
【发布时间】:2012-06-18 08:37:27
【问题描述】:

目前,我正在使用 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 文件的方向?

【问题讨论】:

    标签: linux centos


    【解决方案1】:

    我想出了这个。

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

    于是又检查了一遍路由,改成原来的httpd.conf路由。

    【讨论】:

      猜你喜欢
      • 2022-09-24
      • 1970-01-01
      • 2015-12-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-18
      • 2020-10-24
      • 2023-04-06
      相关资源
      最近更新 更多