
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