Skip to main content

High Apache Load Server Suspended

Comments

4 comments

  • scobiit
    Hi Mbekezm, We run a fair few wordpress websites on a dedicated server but haven't ever had the processor usage go that high. I would have it a guess that either you have an issue with one of the plugins or someone is attempting to brute force access to the website. I personally have made a point of installing wordfence on all the wordpress sites I set up. Though it pushes the processor usage up slightly per site it will block IP's automatically after so many failed login attempts. The easiest way to catch it is to temporarily rename the public_html/wp-content/plugins directory and see whether the processor usage drops. If it does (if you haven't already) check your plugins are also up to date, then go through and disable the plugins and see if the processor usage drops. Thanks again
    0
  • cPanelMichael
    Hello :) The following thread is a good resource for troubleshooting high CPU usage or loads: Troubleshooting High Loads On Linux Systems Thank you.
    0
  • mbekezm
    After looking and searching for days i found a solution that seems to have solved the problem .. The problem was some ***** (very nasty word) from china were trying to brute force the wp-login.php file of wordpress, What i did was i added the the code below to modsecurity, and immediately it started kicking them out after 3 failed logins .. Server seems stable now .. # Start wp-login.php brute attack SecUploadDir /tmp SecTmpDir /tmp SecDataDir /tmp SecRequestBodyAccess On SecAction phase:1,nolog,pass,initcol:ip=%{REMOTE_ADDR},initcol:user=%{REMOTE_ADDR},id:5000134 SecRule user:bf_block "@gt 0" "deny,status:401,log,id:5000135,msg:'IP address blocked for 20 minutes, more than 3 login attempts in 10 minutes.'" SecRule RESPONSE_STATUS "^302" "phase:5,t:none,nolog,pass,setvar:ip.bf_counter=0,id:5000136" SecRule RESPONSE_STATUS "^200" "phase:5,chain,t:none,nolog,pass,setvar:ip.bf_counter=+1,deprecatevar:ip.bf_counter=1/600,id:5000137" SecRule ip:bf_counter "@gt 3" "t:none,setvar:user.bf_block=1,expirevar:user.bf_block=1200,setvar:ip.bf_counter=0" ErrorDocument 401 default # End wp-login.php brute attack
    0
  • cPanelMichael
    I am happy to see you were able to address the issue. Thank you for updating us with the outcome.
    0

Please sign in to leave a comment.