Cant login to WHM with root user

ozora

Member
May 24, 2017
5
0
1
indonesia
cPanel Access Level
Website Owner
hello
i just installation whm but when i try login to WHM using root user and password,thats always login failed,
cPHULK has been disable but stlii cant login,


i use centos 7.3 from azure server,please help me
thank you
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,911
2,234
363
Hello,

First, check to ensure you are using the correct URL for WHM. The correct port in the URL is 2087 (or 2086 for non-SSL). If you are using the correct URL, try accessing the server via SSH and reviewing /usr/local/cpanel/logs/login_log to see if there's a specific login failure message.

Thank you.
 
  • Like
Reactions: ozora

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,911
2,234
363
Hello,

Do you have root access to the system? If so, you can view that log file via SSH as root with a command such as:

Code:
tail -f /usr/local/cpanel/logs/login_log
Then, while watching the log, try logging in and see if you notice any error messages.

Thank you.
 
  • Like
Reactions: ozora

ozora

Member
May 24, 2017
5
0
1
indonesia
cPanel Access Level
Website Owner
if i use that command,i got this error
tail: cannot open ‘/usr/local/cpanel/logs/login_log’ for reading: Permission denied
tail: no files remaining
whats next sir?
thank you
 

24x7server

Well-Known Member
Apr 17, 2013
1,896
91
78
India
cPanel Access Level
Root Administrator
Hi,

It appears the file is not in that location or is with different name.

# cd /usr/local/cpanel/logs
# ls -l
check what exact log file names are here and then choose the correct one to check the logs..

What do you see when you put the https://<IP_ADDRESS>:2087 in the browser?
Replace <IP_ADDRESS> with your actual IP address of the server..
 
  • Like
Reactions: ozora

ozora

Member
May 24, 2017
5
0
1
indonesia
cPanel Access Level
Website Owner
Hi,

It appears the file is not in that location or is with different name.

# cd /usr/local/cpanel/logs
# ls -l
check what exact log file names are here and then choose the correct one to check the logs..

What do you see when you put the https://<IP_ADDRESS>:2087 in the browser?
Replace <IP_ADDRESS> with your actual IP address of the server..


the login is invalid sir,what should i do sir?
 

24x7server

Well-Known Member
Apr 17, 2013
1,896
91
78
India
cPanel Access Level
Root Administrator

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,911
2,234
363
Hello,

Feel free to open a support ticket using the link in my signature if you'd like us to take a closer look. You can post the ticket number here so we can update this thread with the outcome.

Thank you.
 

George Fadel

Registered
Nov 1, 2017
1
0
1
Lebanon
cPanel Access Level
Root Administrator
Hello,

Feel free to open a support ticket using the link in my signature if you'd like us to take a closer look. You can post the ticket number here so we can update this thread with the outcome.

Thank you.
hey guys
i have the same issue and when we are unable to login to WHM after first setup, we cannot open a support case so kindly open a support case and i will share with you more details to access the server and check it
we can login by SSH normally and rebooted the VM and disabled cphulk and still gives us invalid login on first login attempt over ports 2087 where the login screen appears normally
waiting for your input
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,911
2,234
363
Hello @George Fadel,

Do you notice any output to /usr/local/cpanel/logs/login_log when the WHM login attempt fails?

Thank you.