1. Home
  2. Hosting
  3. cPanel Hosting
  4. How to Replace Your Core WordPress Files
  1. Home
  2. Hosting
  3. Problem Solving
  4. How to Replace Your Core WordPress Files

How to Replace Your Core WordPress Files

This article assumes you are already logged into your cPanel account, if you do not already know how, please review How To Change Your Password as it will teach you how to log in from your client area.

At OrangeWebsite all our shared hosting servers come with Softaculous Apps Installer, where you can easily install WordPress.

A WordPress plugin installation or automatic WordPress update can sometimes corrupt your WordPress core files and one way to solve this problem is to re-upload your WordPress core files.

You’ll need to know which version you’re on. You can determine this in a couple of different ways.

One method is to simply open your WordPress site in a Chrome browser and then click CTRL+U to open up the page’s HTML code. Then do a CTRL+F (find) and search for WordPress.

determine your wordpress version
Alternatively, when you log into your WordPress dashboard, you will see the current WordPress version on the home screen of your WP Admin dashboard:

determine wordpress theme by logging into wordpress dashboard

The link where you can download the WordPress core file is: WordPress Releases

At the time of this article, here is a listing of WordPress core files available for download:

download wordpress core files
Once you’ve downloaded the zip or tar file, all you have to do is upload them to your /public_html/ directory (or the corresponding subfolder if you’re hosting multiple domains from the same cPanel account).

upload corefiles here

You can upload to the proper directory by using cPanel’s File Manager or FTP.

upload wp corefile zip file using file manager

Once the zip or tar file is uploaded to the proper directory, extract it there. This will save the complete core files to a directory called wordpress in your /public_html directory so it will look like this /public_html/wordpress.

wp corefiles extracted to a directory called wordpress

All you have to do after this is move everything (using the FileManager Move tool or FTP drag/drop) from /public_html/wordpress/ to /public_html/. By moving it up one level, you will overwrite existing core files that may have been corrupted. This action also replaces missing core files that may have broken your WordPress site.

where to move the corefiles to

Note: The procedure above overwrites and also uploads any missing WordPress core files. You can then open your website in a browser to check if the procedure worked. Make sure to refresh your browser cache, as it may try loading your site again from the cache, instead of your site with the newly restored WordPress core files.

Not a customer? Did you like this knowledgebase article?
If you did like this knowledgebase article and are not currently a customer but are looking for a trusted offshore host, feel free to browse what we have to offer over at OrangeWebsite. We have products that fit everyone from individuals to small, medium, and big-sized businesses. We just might be what you are looking for.

Updated on July 29, 2024
Was this article helpful?

Related Articles