I installed mod_security and mod_evasive in the Amazon EC2. Initially it needs the components libxml2 libxml2-devel, httpd-devel, pcre-devel, curl-devel. But my site uses PHP56, so I used the following commands:
yum remove httpd-tools yum -y install httpd24 yum -y install php56
and restarted the service httpd the following message is displayed:
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]
I can not start the service, someone help me?