I tried to change the dir of secdatadir from /var/cpanel/secdatadir
to
/var/log/secdatadir
because of the error in ModSecurity
I create the dir
mkdir /var/log/secdatadir
chown -R nobody:nobody /var/log/secdatadir
copied the files ip.pag,ip.dir, global.dir, global.pag to /var/log/secdatadir
chmod o-rx -R /var/log/secdatadir
chmod ug+rwx -R /var/log/secdatadir
Made the change in my /usr/local/apache/conf/modsec2.user.conf
SecDataDir "/var/log/secdatadir"
I use WHM 11.52.1 (build 3)
I've read a lot on this forum, but have not found the answer
to
/var/log/secdatadir
because of the error in ModSecurity
Code:
ModSecurity: collections_remove_stale: Failed to access DBM file "/var/cpanel/secdatadir/ip": Permission denied
ModSecurity: collections_remove_stale: Failed to access DBM file "/var/cpanel/secdatadir/global
mkdir /var/log/secdatadir
chown -R nobody:nobody /var/log/secdatadir
copied the files ip.pag,ip.dir, global.dir, global.pag to /var/log/secdatadir
chmod o-rx -R /var/log/secdatadir
chmod ug+rwx -R /var/log/secdatadir
Made the change in my /usr/local/apache/conf/modsec2.user.conf
SecDataDir "/var/log/secdatadir"
I use WHM 11.52.1 (build 3)
- Apache 2.4
- PHP 5.4
- MPM Prefork
- Mod Ruid2
I've read a lot on this forum, but have not found the answer
Last edited by a moderator: