Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Linux 安装yum-php-devel后,Centos 5使用不同的httpd.conf重新启动Apache服务器_Linux_Centos - Fatal编程技术网

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

Linux 安装yum-php-devel后,Centos 5使用不同的httpd.conf重新启动Apache服务器,linux,centos,Linux,Centos,目前,我正在使用Centos 5运行linux服务器 一天前,我在ssh上使用“yum-php-devel”安装了php-devel 我试图用这个命令重新启动Apache服务器 service httpd restart 但是,apache服务器读取不同的httpd.conf文件 它假设读取httpd.conf文件,其中包含“/usr/local/apache/conf/httpd.conf”文件 但是,它现在读“/etc/httpd/conf/httpd.conf” 因此,它犯了这个错误 h

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

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

我试图用这个命令重新启动Apache服务器

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

它假设读取httpd.conf文件,其中包含“/usr/local/apache/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文件的方向?

我找到了这个方法

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

因此,我再次检查了该路由,并将其更改为原来的httpd.conf路由