How To Reinstall Your WordPress Site

Learn how to reinstall your WordPress site in this step-by-step tutorial …

How To Reinstall Your WordPress SiteThis tutorial is part of our WordPress Management tutorial series. In this tutorial, you will learn how to reinstall your WordPress site.

Warning

This tutorial cannot help you reconfigure your site’s settings if you have not been performing regular data and file backups of your site, but it will show you how to perform a fresh new WordPress installation and how to re-import the settings and content of your last backup.

To learn more about creating regular WordPress backups, go here:

***

How To Reinstall Your WordPress Site

It’s important to know how to reinstall your WordPress site in the event that you cannot get your WordPress blog or website back by reimporting your MySQL data or by re-uploading your backup files.

Checklist

Checklist: Reinstalling WordPress

Follow the steps below to safely and effectively reinstall WordPress, ensuring your site runs smoothly and securely:

1. Backup Your Site

  • Before proceeding, backup your entire site, including the database and all files. This ensures you can restore your site if anything goes wrong.

2. Download the Latest Version of WordPress

  • Visit the official WordPress.org site and download the latest version of WordPress.

3. Deactivate All Plugins

  • Log in to your WordPress dashboard and deactivate all plugins to prevent any conflicts during the reinstall process.

Info

Renaming the plugins folder (/wp-content/plugins) on your server (e.g. “/wp-content/plugins-old”) will deactivate all plugins.

WordPress plugins folder
Rename your plugins folder to deactivate all plugins at once.

Note: Remember to rename the folder back to its original name (i.e. “/wp-content/plugins”) when done to avoid errors.

4. Delete Old WordPress Files (Except wp-content)

  • Use an FTP client or your web host’s file manager to delete all WordPress files and folders except the wp-content directory, wp-config.php file, and .htaccess file.
  • The wp-content directory contains your themes, plugins, and media files, so keeping it ensures you don’t lose these assets.

5. Upload and Replace WordPress Core Files

  • Extract the downloaded WordPress package. Upload the wp-admin and wp-includes directories, along with the core files from the WordPress root, to your server.
  • Replace the existing files.

Warning

For your new installation to work, you must not delete the new wp-config.php file.

If you re-import your old backup file and overwrite this file, you will experience errors with your reinstalled site.

6. Reinstall the Database

  • If you choose to start fresh with the database as well, you can delete the old database and create a new one. Import your backup if necessary.

7. Run the WordPress Installation Script

  • Access your site in a web browser. If you deleted the database, you would be prompted to set up WordPress again. Enter the database details and complete the installation.

8. Restore Your Content

  • If needed, restore your content from the backup. Use the WordPress Importer to bring back your posts, pages, and media.

9. Reactivate Plugins and Themes

  • Reactivate your plugins one by one, testing the site after each activation. Then, activate your preferred theme.

10. Test Your Site

  • Thoroughly test your site to ensure everything is functioning as expected. Check for broken links, missing images, or any other issues. Use the checklist further below.

Reinstalling Your WordPress Site: Step-By-Step Tutorial

How To Install WordPress On Your Domain

If your web hosting service offers cPanel with the Fantastico or Softaculous script installation program, then installing a WordPress site on your domain is a breeze.

If your hosting account does not offer cPanel or have Fantastico installed, you will need to either ask you host provider to install it on your server or install WordPress manually using FTP.

Creating Your WordPress Site Using cPanel And Fantastico

Log into your webhosting account…

cPanel login screen
Log into cPanel

If your webhosting account needs to be recreated from scratch, you may need to go into the ‘Email Accounts’ area in the ‘Mail’ section of your cPanel administration area first and set up your email addresses, aliases, forwarders, usernames, passwords, etc. again.

Select Email Accounts
Select Email Accounts

If you need help with this step, see this tutorial: How To Set Up Email For Your Domain Using cPanel

Click on the Fantastico icon in the ‘Software/Services’ section of your cPanel administration screen…

Fantastico Installation Program
Select Fantastico

Select WordPress from the installation items menu, and choose ‘New Installation’ to set up a new blog on your domain…

Install WordPress
Click on New Installation

Fill in the installation setup fields as explained below, then click on Install WordPress

WordPress Set Up
Install WordPress
  1. Install in directory field:
    • If installing site as the MAIN SITE on your domain address, then leave this field blank.
    • If installing site as a business blog on an existing site, then enter a name for the subfolder where your blog will be installed (e.g. “blog” without the quote marks – your site will then be installed on domain http://yourdomain.com/blog )
  2. Administrator-username field: Choose a login username for your site’s administration area.
  3. Password field: Choose a password for your site’s administration area.
  4. AdminNickname field: Your nickname will appear as the author of all posts added to your site. Tip: Choose a nickname that contains a keyword related to your business. For example, if you own a Golf-related business, you may want to choose a nickname like “Golf Editor”, “Mike’s Golf Store”, “The Golfing Expert”, etc …
  5. Admin e-mail field: Enter your email address here.
  6. Site Name field: What you enter here will appear as the title of your site (e.g. “Mike’s Golf Store” or www.MikesGolfStore.com)
  7. Description field: What you enter here appears below the title of your site. Tip: Create a keyword-rich description that also makes sense to your site’s visitors (e.g. “Discounted Golf Equipment, Golfing Accessories And Gifts For Golfers”
  8. Click ‘Install WordPress’ when ready.

Complete the installation process by clicking the Finish installation button…

WordPress Installation
Click on Finish Installation

Choose ‘Send E-Mail’ to email a copy of your installation details to yourself. These details will include your site’s login and password details…

WordPress Installation - Send Email
Send yourself an email confirmation.

To view your new WordPress installation, click on Back to WordPress overview

WordPress Installation - Back to WordPress overview
Return to WordPress overview.

Click on Visit site

WordPress Installation - Visit site
Click on Visit site

Your new site will open in a new browser window…

Screenshot of website
View your new WordPress website install.

Congratulations … your WordPress site has now been reinstalled!

Info

Note: If you have installed a WordPress site using Fantastico and need to remove your WordPress installation, then log into the Fantastico application via cPanel, click WordPress under the “Blogs” menu, select the installation you want to remove and click remove. This will delete your files and database and allow you to perform a fresh installation…

WordPress Maintenance Tutorials - Remove WordPress installation
Click Remove to delete your current WordPress installation.

Info

To learn how to install WordPress using Softaculous, see this video course: How To Use Softaculous

The next step is to re-import your old WordPress site from your backup files. The backup contains your themes, plugins and custom files and folders.

You can re-import your old WordPress backup files automatically using plugins, or manually (see below).

Reimporting WordPress Backup Files Using cPanel

If your webhosting does not offer cPanel, see “Reimporting WordPress Backup Files Using FTP” below.

If you’re still logged into your hosting account, return to your hosting administration area. The screenshot below shows you how to get back to your main cPanel area from the “Fantastico” panel …

WordPress Maintenance Tutorials - Return to Control Panel
Return to Control Panel

Open up File Manager

WordPress Maintenance Tutorials - File Manager
File Manager

Click on Upload

WordPress Maintenance Tutorials - Upload
Select Upload

Click the Browse button in the ‘Upload files’ screen …

WordPress Maintenance Tutorials - Browse Button
Select Browse

Locate the compressed backup file you would like to reinstall on your hard drive and click Open

WordPress Maintenance Tutorials - Open Folder
Select the folder and click the Open button

Your file will begin uploading to your server automatically. This may take a few minutes depending on the size of your file …

WordPress Maintenance Tutorials - File Uploading
Wait for the file to upload

Wait until the file completes uploading, then close the ‘Upload files’ screen and return to ‘File Manager’ …

WordPress Maintenance Tutorials - File Uploaded
File uploaded

Click the Reload button to refresh the ‘File Manager’ screen …

WordPress Maintenance Tutorials - Reload
Click Reload

Warning

*** VERY IMPORTANT ***

In order for your new installation to work, you must not delete the new “wp-config.php” file.

If you re-import your old backup file without following the steps below, your old file’s “wp-config.php” will overwrite the new file and you will experience errors with your reinstalled site.

These next few steps are very important. The first thing we need to do is make a backup of the newly installed “wp-config.php” file. This file contains important settings and instructions for your site on how to access your new WordPress database.

If this file is deleted, you will not be able to login to your site. You will have to delete your WordPress installation and start all over again.

Select the wp-config.php file …

WordPress Maintenance Tutorials - wp-config.php
Select wp-config.php

Click Download

WordPress Maintenance Tutorials - Download
Click Download

A pop-up screen will appear. Make sure it is set to ‘Save File’ and click Ok to continue …

WordPress Maintenance Tutorials
Click OK

Locate the WordPress backup folder in your hard drive and click Save to download your file …

WordPress Maintenance Tutorials - Save to Data Backups
Click Save

Your new wp-config.php file is now safely backed up.

Return to ‘File Manager’ and select wp-config.php again …

WordPress Maintenance Tutorials - wp-config.php
Select wp-config.php

With the wp-config.php file selected, click on Rename

WordPress Maintenance Tutorials - Rename
Click Rename

Rename the wp-config.php file to make the file name slightly different. In the example below, we have simply added an “-a” to the file name. Click Rename File to continue …

WordPress Maintenance Tutorials rename wp-config.php file
Rename wp-config.php file

Now that you have safely backed up and renamed your wp-config.php file, you are ready to continue the process of reinstalling your old WordPress site files.

Select the compressed backup file you recently uploaded and click Extract

WordPress Maintenance Tutorials - Extract Uploaded Backup File
Extract your uploaded backup file

When the ‘Extract’ pop-up window appears on your screen, click on Extract File(s)

WordPress Maintenance Tutorials - Extract Files
Click Extract File(s)

After all of your files have decompressed, a pop-up window will appear on your screen letting you know the process has been completed.

Click Close to close the ‘Extraction Results’ window …

WordPress Maintenance Tutorials - Close button
Close the window

Click on Reload to refresh the window …

WordPress Maintenance Tutorials - Reload
Refresh the screen

The newly extracted files will replace your existing installation files, effectively restoring your old WordPress site.

All you need to do to complete this process now is delete the file called “wp-config.php” (from your old backup) and replace it with the “wp-config.php” file from your new WordPress installation, which you recently renamed to prevent it from being overwritten.

Select wp-config.php and click Delete

WordPress Maintenance Tutorials - Delete wp-config.php
Delete the old wp-config.php file

Click Delete File(s) to confirm the deletion …

WordPress Maintenance Tutorials - Delete file
Click the button to delete the file

Select your renamed “wp-config” file (in the example below this file is called “wp-config-a.php”) and click on Rename

WordPress Maintenance Tutorials - Rename the new wp-config.php file
Rename the new wp-config.php file

Restore the original name of the file to “wp-config.php” and click Rename File to continue …

WordPress Maintenance Tutorials - Click Rename File button
Click Rename File button

The last step in this process is to delete your old backup file, as you have now restored your site’s files and you don’t need to keep such a large file sitting on your server.

Select your old backup file and click Delete

WordPress Maintenance Tutorials - Delete restored backup file
Delete restored backup file

Your old WordPress files have now been fully restored.

Info

Once you have reinstalled your old WordPress files, the next step is to restore your site’s previous settings and configurations by reinstalling your old WordPress MySQL database data, as explained in this tutorial.

Reimporting WordPress Backup Files Using FTP

If your web host does not offer cPanel, then you will need to re-import your WordPress backup files using FTP.

First, make sure that the compressed backup file containing all of the files you want to re-import have been extracted into a separate folder in your hard drive.

This way, you will not be uploading unrelated files to your server…

WordPress Maintenance Tutorials - Extract to here
Select Extract to here

Warning

*** VERY IMPORTANT STEP ***

Once you have extracted all of the files from your old backup file, delete the “wp-config.php” file from the folder.

You do not want to upload this file to your server, as it will overwrite the new “wp-config.php” which contains important data and settings about your new WordPress installation …

WordPress Maintenance Tutorials - Delete wp-confi.php from old backup file.
Delete wp-confi.php from old backup file.

Your files are now ready for uploading to your server’s WordPress installation directory.

All files in this folder should be uploaded EXCEPT for the original compressed backup file …

WordPress Maintenance Tutorials - Upload files
Upload files

Launch your FTP client and connect to your server:

(1) Locate and select all of your backup files (except for the original compressed file as noted above).

(2) Make sure you will be uploading files to the correct directory on your server containing your new WordPress installation.

(3) Upload files …

WordPress Maintenance Tutorials - Files restored
Restore your old WordPress files

Your old WordPress files have now been fully restored.

Info

Once you have reinstalled your old WordPress files, the next step is to restore your site’s previous settings and configurations by reinstalling your old WordPress MySQL database data, as explained in this tutorial:

Checklist

Checklist: Test WordPress Site After Reinstallation

Use this checklist to ensure that your WordPress site is fully functional and optimized after reinstallation:

1. Check the Home Page

  • Visit your site’s home page to ensure it loads correctly.
  • Verify that the layout, images, and text are displaying as expected.

2. Test the Site Navigation

  • Click on all menu items to ensure that all links are working and leading to the correct pages.

3. Verify All Plugins

  • Go to the Plugins section in your dashboard.
  • Ensure all required plugins are activated.
  • Test each plugin’s functionality (e.g., contact forms, SEO tools).

4. Review Theme Settings

  • Navigate to the Appearance > Customize section.
  • Ensure that your theme settings (like colors, fonts, and widgets) are correctly configured and displayed.

5. Test the Site Speed

6. Check All Pages and Posts

  • Go through each page and post on your site.
  • Ensure that content, images, and media files are displaying correctly.

7. Test Forms and Submissions

  • Test all forms (e.g., contact forms, subscription forms) to ensure they are working.
  • Verify that form submissions are correctly delivered to your email.

8. Check for Broken Links

  • Use a plugin like Broken Link Checker to scan for any broken links on your site.
  • Fix any broken links found.

9. Ensure Security Settings Are Intact

  • Review your site’s security plugins and settings.
  • Ensure that features like firewalls and two-factor authentication (2FA) are properly configured.

10. Test E-commerce Functionality (if applicable)

  • If your site includes a shop, place a test order.
  • Verify that the payment gateway, cart, and checkout process work correctly.

11. Check Media Files

  • Verify that all media files (images, videos, etc.) are accessible and display correctly.
  • Re-upload any missing or corrupted files.

12. Test User Registration and Login

  • If your site allows user registration, create a test account.
  • Ensure that the registration, login, and password recovery processes work smoothly.

13. Review SEO Settings

  • Check that your SEO settings are correctly applied.
  • Ensure that meta tags, sitemaps, and other SEO configurations are intact.

14. Backup Your Site

  • Once you’ve confirmed everything is working, perform a complete backup of your site.
  • Store the backup in a secure location for future reference.

15. Monitor for Errors

  • Use tools like Google Search Console to monitor your site for any errors or issues post-reinstallation.

Next Step:

Now that you know how to manually reinstall your WordPress site, then next step is to continue learning about WordPress site maintenance:

How To Reinstall Your WordPress Site

***

"I was absolutely amazed at the scope and breadth of these tutorials! The most in-depth training I have ever received on any subject!" - Myke O'Neill, DailyGreenPost.com