One of our users recently inquired about how to uninstall and reinstall WordPress. When all other troubleshooting methods fail, reinstalling WordPress can help. We’ll show you how to uninstall and reinstall WordPress without losing your data or SEO in this article.
Is It Necessary to Reinstall WordPress?
The first option should never be to reinstall WordPress. The majority of common WordPress errors are easily fixed, saving you the time and effort of reinstalling WordPress.
It will assist you in identifying the problem and determining a solution. If you’re having trouble figuring out what’s causing an issue, consult our WordPress troubleshooting guide.
If your WordPress site has been hacked, follow the steps in our guide on how to clean a hacked WordPress site.
If all else fails, a fresh copy of WordPress can be uninstalled and reinstalled as a last resort.
Step 1: Create a Back-Up Plan.
Make sure your backup files are stored on your computer or in a cloud storage service such as Google Drive or Dropbox. Before you do anything else, you should make a complete backup of your current WordPress site. You can do this with the help of a WordPress backup plugin.
This backup will not be used to reinstall WordPress, but it is useful to have in case something goes wrong.
Step 1: Obtain a copy of your WordPress content.
All of your posts, pages, categories, tags, and comments will be saved in this file. The first step is to create a WordPress export file and export your WordPress content.
When you restore a WordPress site with this export file, you can exclude data created by WordPress plugins.
The following steps will show you how to make a WordPress export file.
After selecting all of the content, click the ‘Download Export File’ button. Go to the Tools » Export page after logging in to your WordPress admin area.
See our WordPress user import/export guide for more information. If your website has a large number of registered users, you may want to export them as well.
Step 2: Save the wp-content folder to your computer.
The /wp-content/ folder on your website contains all of your WordPress themes, plugins, images, and uploads.
Let’s save this information to your computer so you can use it to reinstall WordPress later.
Select the wp-content folder and save it to your computer once you’ve connected. Use an FTP client or cPanel’s File Manager to connect to your WordPress site.
You can now uninstall WordPress after downloading the wp-content folder.
Step 3: Remove WordPress from its current location.
After that, you must delete all WordPress files. To uninstall WordPress, use a FTP client or cPanel’s File Manager to connect to your WordPress site.
You can create as many databases and usernames as you need with most WordPress hosting companies. Your WordPress database does not need to be deleted.
You can create a new database with a new username and password instead of deleting the existing one.
To create a new database, log into your cPanel account and select MySQL Databases from the drop-down menu.
This will take you to the page where you can create a new database.
To begin, give your new database a name and click the Create Database button.
You must first create a username and password before clicking the ‘Create User’ button. After that, scroll down and add a new user to the ‘MySQL Users’ section.
Now you must add the user to the database you previously created. Select the username and database you created earlier from the ‘Add user to database’ section.
To continue, click the ‘Add’ button.
When you reinstall WordPress, your new database is ready to use.
Let’s see how to reinstall WordPress and restore your website now that you’ve successfully uninstalled it.
Step 4: Install WordPress for the first time
You must first download WordPress from the WordPress.org website.
You must unzip the WordPress download file after it has been downloaded.
Within it, you’ll find a WordPress folder. You’ll see all of the WordPress files if you open the WordPress folder.
Now you must use an FTP client to upload these files to your website.
Go ahead and visit your website after you’ve uploaded the WordPress files. WordPress will now prompt you for your database credentials.
Most likely, your host information will be localhost. You must enter the database name, username, and password that you previously created.
To continue, click the submit button once you’ve finished filling out the information.
WordPress will try to connect to your database at this point. It will display a success message after a successful connection. To proceed, simply click the ‘Run Install’ button.
WordPress will then ask you for information about your site, such as the title, description, admin email address, and password.
To continue, click the ‘Install WordPress’ button after filling out the information.
The installation of WordPress is now complete. Log in to the WordPress administration area with the username and password you created earlier.
You must delete the default content once you have logged into WordPress.
Delete the default comment from the ‘Comments’ section. Finally, delete the sample page from Pages. Delete the post titled “Hello World” from Posts.
You’ve successfully reinstalled WordPress from scratch.
Let’s get started on restoring your content.
Step 5: Recover your uploaded files, images, and theme.
To begin, restore your uploaded files, images, and theme from the wp-content folder you downloaded earlier.
To do so, use an FTP client to connect to your website and navigate to the /wp-content/ folder.
Then, from your computer, select the /wp-content/uploads/ folder and upload it to your website.
The /wp-content/themes/ folder contains your theme folders. You can now upload any changes you’ve made to your WordPress theme or child theme files.
Step 6: Import Information
Let’s get started importing your articles, pages, categories, tags, and other content.
To begin, navigate to Tools » Import and then to the ‘Install Now’ link under WordPress.
The WordPress importer will now be downloaded and installed by WordPress. After that, you must select the ‘Run Importer’ option.
This will take you to the WordPress importer page, where you must select the XML file you downloaded in step 1 by clicking the ‘Choose File’ button.
To continue, click the ‘Upload file and import’ button.
WordPress will prompt you to choose between creating new authors and assigning posts to them, or assigning all posts to your current user account.
If your WordPress site is a single author site, you can assign all posts to yourself. If you don’t do anything, WordPress will import the authors for you.
This will allow WordPress to import the images from your /wp-content/uploads/ folder into the WordPress media library properly. You should also make sure that the box under “Import Attachments” is checked.
To continue, simply click on the Submit button.
WordPress will now begin importing the XML file’s content into your new WordPress installation.
You’ll be able to see your content once it’s finished by going to your website.
Step 7: One by one, install WordPress plugins
You can now install plugins after successfully importing content to your reinstalled WordPress site.
It’s possible that you’ll have to manually configure plugins to adjust their settings. You’ll need to install and activate each plugin individually.
You can now go over your website and re-configure things like your navigation menus, sidebar widgets, contact form, and more to how they were before. That’s it; WordPress has been successfully uninstalled and reinstalled.
We hope that this article was useful in teaching you how to uninstall and reinstall WordPress. You might also be interested in our comprehensive WordPress security guide.
You can also find us on social media sites such as Twitter and Facebook. Please subscribe to our YouTube Channel for WordPress video tutorials if you enjoyed this article.
How to Transfer Your Blog from WordPress.com to WordPress.org Correctly
Why is it so important to build an email list today? (6 Reasons)
Beginner’s Guide to Installing Google Analytics in WordPress
15 Things You Must Do Before Changing WordPress Themes Checklist
Editorial Staff Information
WPBeginner’s Editorial Staff is a group of WordPress experts led by Syed Balkhi. Over 1.3 million readers around the world rely on it.
“After that, you must delete all WordPress files,”… Is everything included, including htaccess? would be useful to explain what WordPress files are…
It would be all of your files in your site’s folder.
I’m interested in learning how to uninstall and reinstall WordPress. I’m stuck on a 503 error while trying to access my website. I just wanted to express my gratitude for your fantastic tutorial.
Take a look at the recommendations in our article below if you’re getting a 503 error:
Please assist me. It takes far too long to do anything in the admin area. What can I do about it? Sir, I’d like to show you how to use the back end of WordPress. I uninstalled all plugins and reinstalled them, but the problem persisted.
After completing all of these steps, I’ve lost all of my featured images; none of them are visible in the media folder, but post images are visible.
You should save all of your images in the wp-content folder that you downloaded in Step 2. You’ll probably need to regenerate thumbnails if you changed your WordPress theme after reinstalling it.
hello, how do I set up a premium account that customers can purchase?
It means that if a customer purchases a premium account, I’d like a fully automated procedure.
WordPress upgraded a standard account to a premium account.
A WordPress membership plugin is the best way to accomplish this.