我用
安装了apachesudo yum install httpd
比我尝试用
启动apachesudo 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
我该如何解决这个问题?这太令人沮丧了