How to: Locked out of cPanel and WHM via cPHulk

Jason Mazzota
by Atlantic.Net (29posts) under Cloud Hosting
0 Comments
Verified and Tested 03/24/2015

Introduction

You have locked yourself out of your server from too many login attempts that have failed either due to a bad 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 Cloud 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 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 log in. 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 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.

Not sure what you need?

Get a free consultation today!

New York, NY

100 Delawanna Ave, Suite 1

Clifton, NJ 07014

United States

San Francisco, CA

2820 Northwestern Pkwy,

Santa Clara, CA 95051

United States

Dallas, TX

2323 Bryan Street,

Dallas, Texas 75201

United States

Ashburn, VA

1807 Michael Faraday Ct,

Reston, VA 20190

United States

Orlando, FL

440 W Kennedy Blvd, Suite 3

Orlando, FL 32810

United States

Toronto, Canada

20 Pullman Ct, Scarborough,

Ontario M1X 1E4

Canada

London, UK

14 Liverpool Road, Slough,

Berkshire SL1 4QZ

United Kingdom

Resources

We use cookies for advertising, social media and analytics purposes. Read about how we use cookies in our updated Privacy Policy. If you continue to use this site, you consent to our use of cookies and our Privacy Policy.