Symptoms
A website displays a 404 error, and the Apache error log contains entries similar to the following.
[Tue May 11 15:44:38.561822 2023] [:error] [pid 20309] [client 203.0.113.2:43002] [client 203.0.113.2] ModSecurity: collection_store: Failed to access DBM file "/var/cpanel/secdatadir/nobody-ip": Permission denied [hostname "domain.tld"] [uri "/wp-login.php"] [unique_id "Y0XHpIRi00JuFfueZ9KdngARAAk"]
Description
The 404 error occurs when ModSecurity is unable to access the DBM files.
Workaround
- Access the server's command line as the 'root' user via SSH or "Terminal" in WHM.
- Then run the following command.
chown nobody:nobody /var/cpanel/secdatadir/*\.{dir,pag}
Comments
0 comments
Article is closed for comments.