There can be several reasons why you are here. Perhaps you are having problems with your WordPress website, such as errors that you do not know how to fix, or even worse, maybe your site has been hacked.
Reinstalling WordPress can solve issues when all other troubleshooting tips fail. This article will help you understand how to safely uninstall and reinstall WordPress without losing your data.
Why and When do you need to reinstall WordPress?
There are many reasons that you may need to reinstall WordPress. However, note that the uninstallation and reinstallation of an existing WordPress site are not always necessary.
The first option should never be to reinstall WordPress. Mostly WordPress issues can be easily fixed, saving you the time and effort of reinstalling WordPress.
A fresh copy of WordPress can be uninstalled and reinstalled as a final resort if everything else fails.
How to Reinstall WordPress?
Though there are many methods you can use to reinstall WordPress, in this article, we give you some of the best methods you can use to reinstall WordPress easily.
Note: Before following these methods to reinstall your WordPress website, create a complete backup of your website first.
Reinstalling WordPress via Dashboard is relatively easy. You just need to follow these steps.
- Go to the WordPress dashboard and click on updates.
- Next, you need to click on the button to Re-install Now, as shown in the figure below.
WordPress will automatically download and reinstall the latest version of WordPress after you click the button as shown in the above image. When you update WordPress from your dashboard, you are manually re-running the standard Update process that WordPress runs.
It may take a few moments, but you should have a fresh copy of WordPress installed after the process is complete. In this way, you can reinstall WordPress via the dashboard.
Sometimes you cannot access your WordPress admin dashboard because of any errors. In this case, you can perform a relative process via FTP and need to reinstall WordPress manually.
Here are the following steps that you should follow to reinstall WordPress Via FTP.
- First thing first, download the latest version of WordPress
- Extract the WordPress ZIP file
- Upload everything except the folder of wp-content
Let’s see each move step by step.
The first thing you need to do is go to WordPress.org and download the latest version of WordPress.
- Delete wp-content
Once downloaded, find the folder on your local computer and extract the WordPress. Next, delete the folder of wp-content.
- Upload remaining files via FTP
Once done, connect to your FTP and upload all the remaining files to the folder you originally installed, WordPress. Usually, this is the public_html folder that is your root folder.
Your FTP program will show you a popup that says the file you are uploading is similar to other files when uploading files. You just need to check the Overwrite option and click OK to continue.
We deleted the wp-content folder to overwrite all the core files without modifying themes and plugins.
Once the upload is done, you have a new WordPress core file that will be running smoothly.
WordPress command-line interface (WP-CLI) is a tool that is open source. Usually, developers use this because it is easy to use and developer-friendly. Many people use WP-CLI to install themes, plugins, multisite, and do many things without using the web browser.
There is a simple command to reinstalling WordPress. Nowadays, many managed WordPress hosting providers support WP-CLI. You just need to master WP-CLI commands to help from the tool. The following command will help you to reinstall WordPress:
wp core install --skip-content --force
The above command will help you download and install WordPress without losing any content.
Note: This method is used for WordPress updates without FTP and it is not for beginners. It would be best if you had a piece of knowledge of WP-CLI and servers.
Frequently Ask Questions
That’s all! While using this article, you can easily reinstall WordPress without losing content and facing any difficulty. I hope the article was helpful to you; if you have any comments or suggestions, do not hesitate to ask me via the comment section below.