Bobcares

Reset WHM to default settings – Here’s how to do it

by | Dec 10, 2018

I want to reset my account like the one it was purchased. Can you reset my WHM to default? I’m new to this!!

That was a recent support ticket we received at our cPanel Support Services where we maintain servers of online service providers.

We’ve seen website owners often request to reset their cPanel account and WHM settings to default.

But, why do they need a WHM reset all of a sudden?

This can be due to compromised system, messed up website, bad configuration, wrong DNS entries and so on.

Today, let’s discuss the steps that our Server Support Engineers take to reset a cPanel account and WHM to default.

 

Reset WHM to default – Important steps to follow

Now, let’s see how can we reset WHM or a cPanel account to its default configuration.

 

1) Reset WHM initial configuration

We often receive requests from website owners to reset WHM configuration to default, so that they can start again with the Wizard to set the hostname, IP address, nameservers, contact email, etc.

WHM uses a touch file (/etc/.whostmgrft), to determine whether the Getting Started Wizard should run.

So, our Hosting Engineers delete this file “/etc/.whostmgrft” from the server.

For instance, we use the below command to remove the file .whostmgrft from the server.

rm -rf /etc/.whostmgrft

 

When WHM checks this file, and if it isn’t there, it creates the .whostmgrft file once again.

Therefore, users will see the Initial setup wizard in the browser and can complete the initial configuration.

 

2) Remove accounts and reset WHM

Sometimes, we receive queries from customers to remove their entire cPanel accounts, to restore WHM to the original one.

In such cases, we take the complete server backup and terminate the entire accounts.

If the number of accounts is limited, we take the backup individually and terminate them from WHM > Account Functions > Terminate Account

But, if there are large number of accounts, our Support Engineers write custom scripts to backup the accounts, server configuration files, etc. and terminate them.

 

3) Reset individual cPanel accounts

Similarly, you may sometimes need to reset individual cPanel accounts keeping the DNS intact.

In such cases, we follow the below steps to make it an easy process.

 

a) Create a complete backup of the account

Backing up the cPanel account is most important for all the website owners.

Because an unnecessary file can at some point become the most important one.

So, backup of an account is the safest way to ensure that all website files, databases, emails, etc. are safe.

At Bobcares, our Hosting Engineers always take a complete backup of the account before making any changes.

 

b) Delete the application in Softaculous

Secondly, we delete all installed applications via Softaculous.

It deletes the installation directory, the associated database, and database user automatically.

In other words, once the application is deleted via Softaculous, there is no need to manually remove the website contents or database.

We usually delete a Softaculous application from cPanel > Software > Softaculous Apps Installer

 

reset whm to default

Softaculous in cPanel

c) Delete databases and database users

On the other hand, for manually installed applications, our Support Engineers remove the database and associated database users from cPanel.

We’ll follow the steps below to delete the database and related users.

  • Go to cPanel > Databases > Mysql databases
  • Then, Go to “Current Databases“.
  • Click on Delete button.
  • After that, move to “Current users“.
  • Click on Delete button.

 

reset whm to default

Database section in cPanel

 

d) Delete sub-domains/parked/addon domains

Further, we delete the account’s sub-domains, parked domains and addon domains.

We follow the below steps to remove them from the account.

  • Go to cPanel > Domains.
  • Click on Addon domains/sub-domains/Aliases.
  • Hit the Remove button next to the domain name.

 

reset whm to default

Domains section in cPanel

 

This will remove all the additional domain references in the server.

 

e) Delete files under the cPanel account

The most important step is to delete the cPanel account website files or folders.

In other words, we delete the contents from the directory “/home/username/public_html” .

Here, username represents the cPanel username.

Our Hosting Engineers easily remove the contents with the “rm -r” command via back end.

However, customers can delete from cPanel using the File Manager option.

 

reset whm to default

Filemanager in cPanel

 

But, always be careful while removing files. If you aren’t confident, don’t go for it.

 

f) Delete FTP accounts

Next step is to delete the associated FTP accounts of the domain.

We usually delete the FTP accounts via cPanel > Files > FTP Accounts.

 

reset whm to default

FTP Account option in cPanel

g) Delete cron jobs

Sometimes, there can be custom cron jobs set for the cPanel account.

So, our Hosting Engineers always ensure that the cron jobs associated with the account are removed.

And, we remove it from cPanel > Advanced > Cron jobs

 

reset whm to default

Cron Jobs in cPanel

 

h) Delete email accounts

Based on our experience in managing customer accounts, we’ve seen customers requesting cPanel reset when they mess up with their website.

In such cases, there is no impact on their email accounts, so there is no need to remove them.

But, sometimes customers request to remove the email accounts as well.

We follow the below steps to remove them.

  • Go to cPanel > Email > Email accounts.
  • Click on Delete next to the email account

 

That’s it. The cPanel account is back to the default state, so you could start all over again.

 

Conclusion

In short, website owners often request to reset their cPanel account and WHM settings to default. This can be due to messed up website, compromised system, etc. Today, we’ve seen the different steps to reset WHM to default and how our Server Support Engineers implement it.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

SEE SERVER ADMIN PLANS

var google_conversion_label = "owonCMyG5nEQ0aD71QM";

0 Comments

Submit a Comment

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

Never again lose customers to poor
server speed! Let us help you.

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie
_clck, _clsk, CLID, ANONCHK, MR, MUID, SM

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

_reb2bgeo - The visitor's geographical location

_reb2bloaded - Whether or not the script loaded for the visitor

_reb2bref - The referring URL for the visit

_reb2bsessionID - The visitor's RB2B session ID

_reb2buid - The visitor's RB2B user ID

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid
_reb2bgeo, _reb2bloaded, _reb2bref, _reb2bsessionID, _reb2buid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF