Sunday, October 23, 2011

cpanel webmail login failed and asks login details twice

Advertisements

Sometimes you have to login twice if you are using webmail with cpanel. And still the login fails with error
login failed because your username or password was entered incorrectly (horde, roundcube, squirrelmail).

Here is the solution:
Check the hostname using the fowllowing command
#hostname
Server needs a FQDN hostname configured and also need to be resolvable in DNS
For example if your domain name is linuxhelp.in then hostname can be server.linuxhelp.in
And you should add an entry for server.linuxhelp.in in the DNS.

You can do that in cpanel as follows
Main >> Networking Setup >> Change Hostname
It will aslo ask you add an A record entry for it. Give your vps/server ip.

Now run the following commands.

rm -f /etc/userdomains
/usr/local/cpanel/scripts/updateuserdomains --force

Now restart the cpanel if needed.
/etc/init.d/cpaenl restart.
Thats it. The webmail  login error with cpanel should be fixed now. And you wont have to give login details twice.

No comments:

Post a Comment

Be nice. That's all.