Skip to content

The login is invalid – WHM/cPanel

The login is invalid in WHM Login.

Category
Web Servers
Covers
cPanel

Today I have installed new WHM/cPanel server on an AWS instance. Generally AWS servers are used key based login for ssh users and users don’t have root password. So I have manually reset root password through command line. After installation of cPanel when I tried to login to WHM using web browser I got The login is invalid error even I was using correct login user and password. I tried the same thing by changing root password 3-4 times but still facing same issue.

Error: The login is invalid

whm-invalid-login

After that I google about this issue and found few solutions in which below solution work for me.

Solution:

This issue is creating due to my IP address was blocked by cphulkd. So I have added my ip to white list using following command. Make sure to change 11.22.33.44 with your actual public ip. To find your public ip visit here.

root@cpanel [~]# /scripts/cphulkdwhitelist 11.22.33.44 

11.22.33.44 has been whitelisted

After that I was able to login successfully using root account in WHM panel.

Rahul

Rahul Kumar is the founder and chief editor of TecAdmin.net. A Red Hat Certified Engineer (RHCE), he has worked in IT since 2009, with hands-on experience in Linux system administration, DevOps, web hosting, cloud platforms and automation. He started TecAdmin in 2013 to share practical, step-by-step guides, and leads its editorial work with one aim: making technical learning clear and useful for sysadmins, developers and beginners alike.

Leave a Reply

Your email address will not be published. Required fields are marked *


Back to top