Jump to content

Sandeep B.

Administrators
  • Posts

    247
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Sandeep B.

  1. This regex works with mod security and upon 403 the ips are blocked
  2. first, you can try this mod security csf regex : if (($config{LF_MODSEC}) and ($globlogs{MODSEC_LOG}{$lgfile}) and ($line =~ /^\[\S+ \S+ \S+ \S+ \S+\] \[(\w*)?:error\] (\[pid \d+(:tid \d+)\]) \[client \S+:\S+\] \[client (\S+)\] ModSecurity:(( \[[^\]]+\])*)? Access denied/)) { my $ip = $4; $ip =~ s/^::ffff://; if (split(/:/,$ip) == 2) {$ip =~ s/:\d+$//} my $ruleid = "unknown"; if ($line =~ /\[id "(\d+)"\]/) {$ruleid = $1} if (checkip(\$ip)) {return ("mod_security (id:$ruleid) triggered by","$ip","mod_security-custom","1","80,443","1")} else {return} }
  3. yes you can ask your client to use redis cache in there Wordpress to speed up the sites and this will also lower the load fo your main server
  4. hi will check urgently
  5. okay thanks it will be resolved soon as our devs are already working on it
  6. Since cwp developers are busy with el9 hope this will be fixed soon with cwp. Will follow up with them
  7. one more thing if you get bad support in cwp send me the ticket number
  8. support is active there we're fixing the support in cwp and soon will be fixed since CWP is going with el9 there are some bugs that we'll fixed ASAP.
  9. for development: hestia for WordPress : cyberpanel for extended feature and OS compatibility: plesk and aapanel for shared hosting: CWP and CPanel Directadmin is good but very complex for easy reverse proxying with backend apps: cwp for free mailing MTA : hestia cp and cwp
  10. Hi try to set as disk quota 0 in packages and try without any hooks
  11. The disk quota shouldn't be -1 you need to set something like bigger positive number like 999999
  12. i've checked the xfs and ext4 quota and they are working fine
  13. Yes it can be fixed generally i sent you the method will fix it.
  14. Its not bug in cwp its your kernel quota bug
  15. you're not using cwp compatible quota you need to follow this tutorial https://forum.centos-webpanel.com/centos-configuration/how-to-setup-user-quotas/ after adding to fstab : /dev/sda1 / ext4 srjquota=quota.user,jqfmt=vfsv0 0 0 usrjquota=quota.user,jqfmt=vfsv0 reboot the system and then run again mount -o remount / quotacheck -avugm quotaon -avug
  16. can you post the output of this commands : mount -o remount / quotacheck -avugm quotaon -avug
  17. it seems to be quota issue with kernel predefined quota recommended to use ext4 or xfs file system
  18. add this line to /etc/my.cnf [mysqld] pid-file = /var/lib/mysql/mariadb.pid restart mariadb service and edit monit config file : nano /etc/monit.d/cwp.mysql replace with below config : check process mariadb with pidfile /var/lib/mysql/mariadb.pid group database start program = "/usr/bin/systemctl start mariadb" stop program = "/usr/bin/systemctl stop mariadb" restart program = "/usr/bin/systemctl restart mariadb" if failed port 3306 protocol mysql then restart if 3 restarts within 5 cycles then timeout alert root@localhost only on {timeout} then restart monit service
×
×
  • Create New...