
我在 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