When using WordPress, you might encounter issues that require you to reinstall the WordPress core.
But how do you actually perform a WordPress core reinstall?
In this article, we will discuss how to reinstall the WordPress core, but a true reinstall. This means you will delete the current WordPress core (rather than overwriting or overwrite), then install a new WordPress core without losing your media, articles, and so on.
How to Reinstall WordPress Core
There are several steps you need to take to reinstall the WordPress core, including
- Check WordPress Version
- Download WordPress according to the installation version
- Update the downloaded WordPress files
- Delete WordPress core on the server
- Upload the updated files
- Extract the file
- Done
[the_ad id=”3331″]
1. Check WordPress Version
There are many ways you can use to check your WordPress version. However, if you cannot log in to WordPress and there is no Softaculous on your server, you can check the WordPress version by opening the file wp-includes/version.php
After finding the version.php file, you can open or view the file, and you will find the WordPress version information from the line $wp_version =
2. Download WordPress According to Installation Version
Since you now have the WordPress version information, for example version 6.3.2, you can then download the WordPress files for that version through this page https://wordpress.org/download/releases/.
Just choose the version that matches the one you are using on your website, then download the file using the .zip extension
3. Update the Downloaded WordPress Files
After finishing the WordPress file download, you can extract the file on the device you are using, then delete the folder wp-content, so the result looks like this
Now, you need to compress the files and folders into a Zip file so it can be uploaded to your hosting, or you can upload them directly using FTP (If uploading directly using FTP, make sure you complete step number 4 first!).
4. Delete WordPress Core on the Server
Switching to the server or hosting, you now need to delete certain files before uploading the WordPress files you have prepared.
[the_ad id=”3331″]
Once you are in the WordPress installation folder on your server, just delete all files or folders, Except
- Folder wp-content
- File .htaccess
- File .user.ini (if present)
- File php.ini (if present)
- File wp-config.php
If done, the list of files currently on your hosting will look like this
5. Upload the Updated Files
You can upload the file you previously zipped directly from your hosting, or you can also use FTP.
If using hosting, especially cPanel, you can select the menu Upload to upload the WordPress core file you have updated.
After the upload is complete, you can extract the WordPress file to continue.
6. Extract the Zip File
Successfully uploaded the zip file? Now you just need to extract the zip file that was successfully uploaded by right-clicking and selecting the option Extract
When you successfully extract the file, the result will look like this
However, if you get an error message Unsupported Compression Method 99, then you can follow this tutorial.
7. Done
The WordPress core reinstall process is complete, and now you can try accessing your website again.
[the_ad id=”3331″]
If the error on your website was previously caused by an error in the WordPress core, then your website should now be accessible again normally.
COMMENTS
Loading...