httpd 시작: AH00526: /etc/httpd/conf.d/modsecurity.conf의 7행에 구문 오류가 있습니다.

httpd 시작: AH00526: /etc/httpd/conf.d/modsecurity.conf의 7행에 구문 오류가 있습니다.

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

여기에 이미지 설명을 입력하세요

관련 정보