Disable cPanel cPHulk via command line

cPanel VPS Security is important. Scripts are constantly scanning the internet looking for servers to break into using brute force attacks. Fear not, cPanel comes with a built in brute force protection in the form of cPHulk.
While this isn’t the only measure you should use, we certainly recommend it. It’s fair to say that with great protection, can come great inconvenience. You’ve enabled cPHulk but you’ve managed to lock yourself out. Fear not, there’s a couple of options to get yourself back in the game:

If you are completely lockout of the server then open web browser from your PC and access WHM at https

https://hostname.com:2087/scripts2/doautofixer?autofix=disable_cphulkd


Stop cPHulk from the command line via terminal or ssh


/usr/local/cpanel/etc/init/stopcphulkd

Disable cPHulk from the command line via terminal or ssh


/usr/local/cpanel/bin/cphulk_pam_ctl --disable

Unsurprisingly you can also use the following to re-enable it:

/usr/local/cpanel/bin/cphulk_pam_ctl --enable


Above commands will just stop or disable cphulkd temporarily if you restart the cPanel service, it would again start the cphulkd service. In order to stop it permanently.

You can try

rm -f /var/cpanel/hulkd/enabled

Enjoy!!

  • 4 Users Found This Useful
Was this answer helpful?

Related Articles

Adding secondary IPs to Cpanel

  To access the IP Functions Menu, click on IP Functions, on the main screen...

Suspended page / Internal Server Error

If domain is showing "Internal Server Error" except suspention page after suspending the domain...

CPanel Log file locations

CPanel stores it’s log files in the /usr/local/cpanel/logs directory. Below is a list of the...

How do convert a dedicated ip to a shared ip on cPanel/WHM

In root SSH, copy the /etc/domainips file and then remove the IP from it: Code: cp...

Install RKHunter

You can install RKHunter on Linux Server by using following steps.1 Login to your server as...