无法在Centos 7上启动Apache

时间:2016-08-25 19:53:18

标签: apache vps centos7

我用

安装了apache
sudo yum install httpd

比我尝试用

启动apache
sudo systemctl start httpd.service

但后来我收到以下错误:

Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.

所以我跑

systemctl status httpd.service

我收到以下消息:

httpd: Syntax error on line 51 of /etc/httpd/conf/httpd.conf: Syntax error on line 4 of /etc/httpd/conf/extra/httpd-phpmodules.conf: Cannot load /usr/lib/apache/mod_mpm_prefork.so into server: /usr/lib/apache/mod_mpm_prefork.so: undefined symbol: ap_set_listencbratio

我也跑

journalctl -xe

我得到了:

httpd: Syntax error on line 51 of /etc/httpd/conf/httpd.conf: Syntax error on line 4 of /etc/httpd/conf/extra/httpd-phpmodules.co

我该如何解决这个问题?这太令人沮丧了

0 个答案:

没有答案