Just lately, one in every of our customers requested us how they’ll uninstall and reinstall WordPress? Reinstalling WordPress can resolve points when all different troubleshootings ideas fail. On this article, we’ll present you safely uninstall and reinstall WordPress with out dropping your information or website positioning.
Methods to uninstall and reinstall WordPress
When Do You Must Reinstall WordPress?
Reinstalling WordPress ought to by no means be the primary possibility. Commonest WordPress errors are simply fixable, and it will prevent from the effort of reinstalling WordPress.
For those who can’t determine the reason for a problem, then comply with the directions in our WordPress troubleshooting information. It’s going to make it easier to pin-point the difficulty and discover a resolution.
In case of a hacked WordPress website, you possibly can attempt the guidelines in our information on clear a hacked WordPress website.
If all else fails, then uninstalling and reinstalling a recent copy of WordPress can be utilized because the final resort.
Step 0. Create an Emergency Backup
Earlier than you do something, you need to first create an entire backup of your current WordPress website. You should utilize a WordPress backup plugin to do that. Just be sure you retailer your backup recordsdata in your laptop or a cloud storage service like Google Drive or Dropbox.
We is not going to be utilizing this backup to reinstall WordPress, nevertheless it’s good to have in case one thing goes mistaken.
Step 1. Export Your WordPress Content material
Very first thing you have to do is export your WordPress content material by making a WordPress export file. This file will comprise all of your posts, pages, classes, tags, and feedback.
Restoring a WordPress website utilizing this export file permits you to omit information created by WordPress plugins.
Right here is how you’ll create a WordPress export file.
First, register to your WordPress admin space after which go to Instruments » Export web page. Choose all content material after which click on on ‘Obtain Export File’ button.
Obtain WordPress export file
In case you have plenty of registered customers in your web site, then it’s possible you’ll wish to export them too. See our information on simply import/export customers in WordPress.
Step 2. Obtain wp-content Folder
All of your WordPress themes, plugins, pictures, and uploads are saved within the /wp-content/ folder in your web site.
Let’s obtain this content material to your laptop, so to use it later to reinstall WordPress.
Connect with your WordPress website utilizing an FTP consumer or File Supervisor in cPanel. As soon as linked, choose the wp-content folder and obtain it to your laptop.
Obtain wp-content folder
After downloading the wp-content folder, you’re able to uninstall WordPress.
Step 3. Correctly Uninstall WordPress
To uninstall WordPress, you have to hook up with your WordPress website utilizing a FTP consumer or File Supervisor in cPanel. Then you have to delete all WordPress recordsdata.
You don’t really want to delete your WordPress database. Most WordPress internet hosting firms assist you to create as many databases and usernames as you want.
As an alternative of deleting the prevailing database, you possibly can create a brand new one with a brand new username and password.
To create new database, you have to login to your cPanel account and click on on MySQL Databases icon.
This may convey you to the add new database web page.
First, you have to enter a reputation on your new database and click on on create database button.
Create a brand new database
After that, scroll down so as to add ‘MySQL Customers’ part and add a brand new person. You will want to enter a username and password, after which click on on ‘Create Person’ button.
Add New MySQL person
Now you have to add the person to the database you created earlier. Scroll all the way down to ‘Add person to database’ part after which choose the username and database you created earlier.
Add person to database
Click on on the ‘Add’ button to proceed.
Your new database is prepared for use if you reinstall WordPress.
Now that you’ve got efficiently uninstalled WordPress, let’s see reinstall it and restore your web site.
Step 4. Contemporary Set up WordPress
You want to obtain a recent copy of WordPress from WordPress.org web site.
After downloading WordPress, you have to unzip the obtain file.
You can see a WordPress folder inside it. Open the WordPress folder, and you will note all of the WordPress recordsdata.
Now, you have to add these recordsdata to your web site utilizing an FTP consumer.
Add WordPress recordsdata
After importing the WordPress recordsdata, go forward and go to your web site. WordPress will now ask you to enter your database info.
Add database information
You want to enter the title of database, username, and password you created earlier. Your host info will almost definitely be localhost.
As soon as you’re completed filling out the knowledge, click on on the submit button to proceed.
WordPress will now try to connect with your database. Upon profitable connection, it should present you successful message. Now you can click on on the ‘Run Set up’ button to proceed.
Run WordPress set up
Within the subsequent step, WordPress will ask you to supply your website info like website title, description, admin e mail deal with and password.
Web site info
After filling out the knowledge, click on on ‘Set up WordPress’ button to proceed.
WordPress will now end the set up. Go forward and log into the WordPress admin space utilizing the username and password you entered earlier.
As soon as you’re logged into WordPress, you have to delete the default content material.
Head over to Posts and delete the ‘Hiya World’ put up. Go to the ‘Feedback’ part and delete the default remark. Lastly, go to Pages and delete the pattern web page.
You might have efficiently reinstalled a recent copy of WordPress.
Now let’s transfer on to restoring your content material.
Step 5. Restore Uploads, Pictures, and Theme
First, you will have to revive your uploads, pictures, and theme positioned contained in the wp-content folder you downloaded earlier.
To try this, you have to hook up with your web site utilizing an FTP consumer and go to /wp-content/ folder.
You May Also Like : 14 Vital Tips to Protect Your WordPress Admin Area (Updated)
Subsequent, you have to choose the /wp-content/uploads/ folder out of your laptop and add it to your web site.
Add the uploads folder
In case you have made modifications to your WordPress theme or little one theme recordsdata, then you possibly can add them now. Your theme folders are positioned within the /wp-content/themes/ folder.
Step 6. Import Content material
Now let’s import your posts, pages, classes, tags, and different content material.
First, you have to go to Instruments » Import web page after which click on on ‘Set up Now’ hyperlink below WordPress.
Set up WordPress importer
WordPress will now obtain and set up the WordPress importer. After that you have to click on on the ‘Run Importer’ hyperlink.
This may convey you to WordPress importer web page the place you have to click on on the ‘Select File’ button after which choose the XML file you downloaded throughout our step 1.
Importing WordPress XML file
Click on on ‘Add file and import’ button to proceed.
WordPress will ask you if you wish to create new authors and assign the posts to them or if you want to assign all posts to your present person account.
If it’s a single writer WordPress website, then you possibly can assign all posts to your self. In any other case, do nothing and WordPress will import the authors.
You additionally must just be sure you examine the field below ‘Import Attachments’. This may permit WordPress to correctly import the photographs in your /wp-content/uploads/ folder to the WordPress media library.
Go forward and click on on the Submit button to proceed.
WordPress will now begin importing content material from the XML file to your recent WordPress set up.
As soon as completed, it is possible for you to to see your content material by visiting your web site.
Step 7. Set up WordPress Plugins (One by One)
After efficiently importing content material to your reinstalled WordPress website, you possibly can transfer on to putting in plugins.
You will want to put in all plugins one after the other after which activate them. Chances are you’ll must manually setup plugins to regulate their settings.
That’s all, you may have efficiently uninstalled and reinstalled WordPress. Now you can evaluation your web site and setup issues as they had been earlier than like your navigation menus, sidebar widgets, contact kind, and extra.
We hope this text helped you discover ways to uninstall and reinstall WordPress. You might also wish to see our final step-by-step WordPress safety information.
If you liked this article, make sure to hit the bell for getting our latest updates and share this article with your friends in every social media platforms.