遇到问题:
centos7.4升级httpd从2.4.6到2.4.41后网页登录就直接退出。查看httpd错误日志:
malformed header from script 'pmc_fcgi': Bad header: xc7xebxb2xbbxd2xaaxd6xd8xb8xb4xb3xf5xcaxbcxbbxafxa3xa1

解决办法:
修改配置文件/etc/httpd/conf/httpd.conf,在LoadModule注释下边添加
LoadModule fastcgi_module modules/mod_fastcgi.so

后续:
运维在添加时将该该句放置在配置文件最后,发现依然报错。
可能原因是:自定义的fcgi在conf.modules.d下的conf文件配置。加载module应该在读取conf(Include conf.modules.d/*.conf)之前。