HTTP ERROR 500 - security2:error - ModSecurity

Operating System & Version
Centos 7
cPanel & WHM Version
108.0.14

Krugger

Registered
Apr 24, 2018
4
1
3
Santiago de Chile
cPanel Access Level
Root Administrator
Hello everyone,

My cPanel configuration is on CentOS Linux 7 (Core), as a Web platform I use Invision IPS, with the commerce module, only one option of this module, when entering it gives me a 500 error.

The APACHE error log gives me this information.

Error Apache
[Mon Mar 29 23:24:06.705962 2023] [security2:error] [pid 19916] [client xxx.xxx.xxx.xxx:62383] [client xxx.xxx.xxx.xxx] ModSecurity: collections_remove_stale: Failed to access DBM file "/var/cpanel/secdatadir/YYYYYYY-default_SESSION": Permission denied [hostname "www.YYYYYYY.cl"] [uri "/foro/ZZZZZZ/index.php"] [unique_id "ZBkVRoQCWYaJb1JyJXVaIAAAAQE"], referer: https://www.YYYYYYY.cl/foro/ZZZZZZ/?app=nexus&module=payments&controller=transactions&do=&attn=1


PATH: /var/cpanel

drwxrwx--T. 2 root nobody 4096 mar 20 22:00 secdatadir

total 0
-rw-r-----. 1 nobody nobody 0 mar 29 22:00 nobody-default_SESSION.dir
-rw-r-----. 1 nobody nobody 0 mar 29 22:00 nobody-default_SESSION.pag
-rw-r-----. 1 nobody nobody 0 mar 29 22:00 nobody-ip.dir
-rw-r-----. 1 nobody nobody 0 mar 29 22:00 nobody-ip.pag

I have tried updating mod_security, changing the permissions to the files in the path /var/cpanel/secdatadir, to 660 and 777, but the error is still present.

I opened a support thread on Invision and everyone tells me that the problem is at the apache level, but I don't know where.


I would appreciate any help and prayers that can help me identify a solution.

Regards,
 
Last edited by a moderator: