我在 Amazon EC2 中安装了 mod_security 和 mod_evasive。最初它需要组件 libxml2 libxml2-devel、httpd-devel、pcre-devel、curl-devel。但我的网站使用 PHP56,所以我使用了以下命令:
yum 删除 httpd-tools yum -y 安装 httpd24 yum -y 安装 php56
并重新启动服务httpd,显示以下消息:
Stopping httpd: [FAILED]
Starting httpd: AH00526: Syntax error on line 7 of /etc/httpd/conf.d/modsecurity.conf:
Invalid command 'SecRuleEngine', perhaps misspelled or defined by a module not included in the server configuration
[FAILED]
我无法启动该服务,有人能帮帮我吗?
文件/etc/httpd/conf.d/modsecurity.conf