Knowledgebase / Reseller hosting
Reset a client's cPanel password in WHM
Set a new cPanel password for one of your reseller accounts from WHM, decide what to do about the MySQL option, and hand the password over safely.
When one of your clients loses their cPanel password, you can set a new one yourself from WHM. This guide covers finding the account, changing the password, and getting it to the client without breaking their site. You will need your reseller WHM login, which is in your DrivenHost welcome email.
Find the account
- Log in to WHM.
- Type "List Accounts" into the search box at the top left, then open Account Information > List Accounts.
- Search by domain, username or contact email address.
- Note the value in the User column. That username is what the next step works with.
List Accounts only shows accounts your reseller owns. If the account you expect is missing, it is probably held under a different reseller or a different plan.
One thing worth knowing before you reset anything: if you only need access to the account, you do not need the password at all. Click the cPanel icon beside the account in List Accounts and WHM logs you straight in. The client's password stays as it is.
Set the new password
- Open Account Functions > Password Modification. Searching for "Password Modification" is quicker than hunting through the menu.
- Choose the account from the list.
- Enter the new password in both fields, or use the password generator and copy what it gives you.
- Decide what to do about the MySQL option. Password Modification can sync the account's MySQL password with the new cPanel password. If the site has a configuration file holding a database password (wp-config.php, for example), leave that option off, or the site can lose its database connection.
- Click Change Password and wait for the confirmation message.
The change applies immediately. It also resets the account's main FTP login, because that login shares the cPanel password. Any extra FTP accounts the client created keep their own passwords, as do individual mailboxes.
Hand the password over
- Send the password through a channel the client already uses with you, and send it separately from the username where that is practical.
- Ask them to set their own password at first login, under Preferences > Password & Security in cPanel.
- Record the date of the reset in your own notes. A client who needs two resets in a week is worth a closer look.
If the lockout followed anything that looked like unauthorized access, have the client review their Email Accounts and FTP Accounts in cPanel for logins they do not recognize before you call it finished.
If it didn't work
The account is not in the list. WHM shows you the accounts your reseller owns and nothing else. Check the spelling of the domain, and confirm the account is actually on your plan rather than held directly.
WHM rejects the password. cPanel servers enforce a minimum password strength, and the score is shown as you type. The generator always produces a password that passes, so use it rather than fighting the meter.
The site loads but cannot reach its database. The MySQL sync option was almost certainly on. Put the database password back in the site's configuration file, or set the database user's password again under MySQL Databases in the client's cPanel so the two match.
If the account still will not take a new password, open a ticket at /support with the username and an engineer will check it from the server side.
More in Reseller hosting
Stuck partway through? Support is answered by the engineers who run the servers, around the clock.