Failed to access DBM file
I have installed Imunify360 and started getting these errors. I installed suPHP months ago and screwed up my permissions. I am using cPanel's default cgi for PHP. I thought this might have something to do with it.
I changed user and usergroup to root, and created the file it was looking for but the error persists.
[Thu Dec 10 12:51:21.481305 2020] [:error] [pid 24324] [client xxx.xxx.xxx:6675] [client xxx.xxx.xxx.6675] ModSecurity: collections_remove_stale: Failed to access DBM file "/var/cpanel/secdatadir/mydomain-ip": Permission denied [hostname "www.mydomain.com"> [uri "/webpage.htm"> [unique_id "X9IZyWf-sa-C8XpPDPHgwgAAAAQ">, referer: https://www.google.com/[root@xxx secdatadir]# ls -la
total 12
drwxrwx--T. 2 root nobody 98 Dec 10 12:00 .
drwx--x--x. 107 root root 8192 Dec 10 12:37 ..
-rw-r-----. 1 nobody nobody 0 Dec 10 12:00 nobody-global.dir
-rw-r-----. 1 nobody nobody 0 Dec 10 12:00 nobody-global.pag
-rw-r-----. 1 nobody nobody 0 Dec 10 12:00 nobody-ip.dir
-rw-r-----. 1 nobody nobody 0 Dec 10 12:00 nobody-ip.pag I changed user and usergroup to root, and created the file it was looking for but the error persists.
-
Hey there! Usually we actually recommend suPHP to help with these errors, and those files should all have the "nobody" owner and user by default. Can you confirm the server isn't using ruid2? 0 -
I'd like to use suPHP but don't know how to install it properly. So I'm using mod_cgi, mod_ruid2, and mod_mpm_prefork. I think it's the default cPanel setup. 0 -
Thanks. Set up SuPHP one of my servers and seems to be working fine. Disappointed to find out suPHP is no longer supported. I haven't seen the error appear again on that server. As far as my other servers using mod_cgi, I read disabling jailed shell solves the issue. I'll just disable shell access. I don't use often. 0 -
Disappointed to find out suPHP is no longer supported.
I'm not completely sure what you mean with this part of your reply. Can you get me more details on what you are seeing?0 -
Oh. That it is end of life with no further updates. 0 -
It's important to note that cPanel maintains our own suPHP package, which can be seen here: ea-apache24-mod_suphp.x86_64 While the suPHP project itself is no longer maintaining the software, we still provide that tool and have our documentation on it here: PHP Handlers | cPanel & WHM Documentation 0
Please sign in to leave a comment.
Comments
7 comments