请知悉:本文最近一次更新为 10年 前,文中内容可能已经过时。

好吧,这个问题用了一些时间,因为是windows下的,所以有些莫名其妙,之前用Apache2.2的时候一切正常,换了xampp最新版后就无法启用了,用到其违禁词过滤的功能,无法启动,而且Apache的错误日志和windows错误日志也没有记录。最终通过命令行

httpd -t

,启动的时候,得到了报错

AH00526: Syntax error on line 2 of F:/xampp/Apache/conf/extra/httpd-substitute.conf:
Invalid command 'AddOutputFilterByType', perhaps misspelled or defined by a module not included in the server configuration

通过谷歌,找到了官网说明,原来是Apache 2.4之后,要想生效,必须启用另一个模块才可以,即要启用

mod_filter.so
mod_substitute.so

两个模块。启用后,即可正常启动Apache。


如您从本文得到了有价值的信息或帮助,请考虑扫描文末二维码捐赠和鼓励。

尊重他人劳动成果。转载请务必附上原文链接,我将感激不尽。


与《Apache 2.4-mod_substitute.so启用后无法启动Apache-Invalid command ‘AddOutputFilterByType’-解决办法》相关的博文:


留言

avatar
😀
😀😁😂😅😭🤭😋😘🤔😰😱🤪💪👍👎🤝🌹👌