L
L
letchikdima2016-03-08 21:12:19
Apache HTTP Server
letchikdima, 2016-03-08 21:12:19

Why does the modsecurity error occur?

Unable to install modsecurity. Gives an error message

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

Apache config link: https://drive.google.com/open?id=0B2Yiy_W8lK9HY21f...
What could be the problem?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ilya T., 2016-03-08
@Insaned

1. The config could not be viewed (the file is closed).
2. I'll try to play Python and assume that there are problems with write permissions to this file /var/log/apache2/modsec_audit.log

V
Vladimir Kuts, 2016-03-09
@fox_12

Well, look for the presence of the path and file /var/log/apache2/modsec_audit.log
Make sure that Apache has write permissions to this directory and file.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question