How to Disable cpHulk (cPanel Firewall) from SSH or WHM

cPHulk on the command line is helpful if you have been locked out of the WHM or cPanel interfaces. If you are locked out of the system and need to get your access working quickly, the easiest thing to do is to disable the cPHulk service, which you can do with the following commands.  These will disable the service and stop the active processes:

whmapi1 configureservice service=cphulkd enabled=0 monitored=0
/usr/local/cpanel/etc/init/stopcphulkd
/usr/local/cpanel/bin/cphulk_pam_ctl --disable