Skip to content

Message: collection_store: Failed to access DBM file "/var/cache/modsecurity/ip": Permission denied #2127

@ghost

Description

Hey there,

I actived comodo rules then I tried fixing the following error:
ModSecurity: collection_store: Failed to access DBM file "/var/cache/modsecurity/ip": No such file or directory

with the guide on https://support.plesk.com/hc/en-us/articles/213368509-Comodo-rule-set-does-not-work-Failed-to-write-to-DBM-file-var-cache-modsecurity-ip-Invalid-argument

I used the command: mkdir the folder
and ls -ld /var/cache/modsecurity/
but received:
drwxr-xr-x 2 root root 6 July 4 /var/cache/modsecurity/
instead of what they have in the example:
drwxr-xr-x 2 apache root 4096 Jun 29 18:37 /var/cache/modsecurity/

Now I am having this permission issue below; how can I fix it? Please help me out with this one guys, i hardly now any commands on linux.

Message: collection_store: Failed to access DBM file "/var/cache/modsecurity/ip": Permission denied
Apache-Error: [file "apache2_util.c"] [line 271] [level 3] [client %s] ModSecurity: %s%s [uri "%s"]%s
Apache-Handler: application/x-httpd-php
Stopwatch: 1562201007580453 12703 (- - -)
Stopwatch2: 1562201007580453 12703; combined=3742, p1=1008, p2=2410, p3=24, p4=35, p5=158, sr=173, sw=107, l=0, gc=0
Response-Body-Transformed: Dechunked
Producer: ModSecurity for Apache/2.9.1 (http://www.modsecurity.org/); CWAF_Apache.
Server: Apache
Engine-Mode: "ENABLED"

Metadata

Metadata

Assignees

Labels

2.xRelated to ModSecurity version 2.xduplicateOps. Somebody else already hit that bump

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions