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?
The file /etc/httpd/conf.d/modsecurity.conf
httpd24
. Tryyum install mod_security
.httpd
won't start because you havemod_security
configuration settings but nomod_security
to make them work. Installmod_security
. If you've already installed it, remove it and re-install it so it gets added to your newhttpd24
install.