0

when i ran the command apache2ctl configtest it is showing this error

AH00526: Syntax error on line 193 of /etc/modsecurity/modsecurity.conf:
ModSecurity: Failed to open the audit log file: /var/log/apache2/modsec_audit.log

and on line 193

SecAuditLog /var/log/apache2/modsec_audit.log

what is wrong? can anyone tell why is it so

Sony
  • 103
  • 1
  • 6

1 Answers1

1

I was almost two years late to this post but in my case it is because I was executing the command without administrator privileges. try with sudo apachectl -t or sudo apache2ctl configtest

Ricardo
  • 11
  • 1