Atlantic.Net Blog

How to: Locked out of cPanel and WHM via cPHulk

Verified and Tested 03/24/2015

Introduction

You have locked yourself out of your server from too many login attempts that have failed due to a wrong password or other means. You know you have cPHulk running on the server, and there’s a good possibility it is now blocking you because you did not put your IP in the whitelist. How do you fix it? Follow the steps below!

Prerequisites

An Atlantic.Net virtual private server with CentOS 6 and cPanel & WHM.

Unlock yourself from cPHulk

The first thing to do, in this case, is to attempt to disable cPHulk via the web; however, this has a slim chance of working. To do this, append the below onto your web path.

/scripts2/doautofixer?autofix=disable_cphulkd

It should look something like:

https://your_Cloud_IP:2087/scripts2/doautofixer?autofix=disable_cphulkd

 

If that does not work, confirm whether or not you can SSH into your server as root. If you can, then great! You can run the below command lines via SSH to stop and disable cPHulk and attempt to log into the website version of WHM or cPanel.

If you cannot SSH, try to use the VNC viewer available in the Cloud Portal and login. If that fails, continue with the below options.

/usr/local/cpanel/etc/init/stopcphulkd/usr/local/cpanel/bin/cphulk_pam_ctl --disable

Find more whm scripts here.

So the Web, SSH, and VNC options did not work for you. Do you have another IP or computer to attempt these options from? You could also try resetting your password via the single-user mode found here. Contact us for assistance, and we will be able to try it from our end.

 

Once access is regained by disabling cPHulk, remember to immediately add your IP to cPHulk’s whitelist and re-enable cPHulk.

 

Learn more about our VPS hosting services and VPS hosting price.

Get a $250 Credit and Access to Our Free Tier!

Free Tier includes:
G3.2GB Cloud VPS a Free to Use for One Year
50 GB of Block Storage Free to Use for One Year
50 GB of Snapshots Free to Use for One Year