How to replace missing files Print

  • 0

How to replace missing files

WordPress’ Content Management System (CMS) has a straightforward file structure so replacement can be done in just a few steps. Replacing default files is recommended as it will fix all files that are potentially corrupted by the virus. Still, it should be done with the highest amount of caution as replacing some files and folders may lead to data loss.

 

IMPORTANT: Make sure to create a backup of your website before making any changes. If you installed WordPress with the Softaculous Apps Installer, please follow the listed steps in this guide to create a backup.

To replace the missing WordPress files, simply follow the steps listed below:

  1. Log in to your cPanel Account >> Softaculous Apps Installer:
  2. Create a new installation for your website in the subfolder. To do this, click on the WordPress icon >> Install:
  3. You will then be redirected to the installation menu. Choose your website from the drop-down menu and type the name of the subfolder within the In Directory field. For example, you can call it “Fix”.

PLEASE NOTE: Replacing all the default files will automatically upgrade your installation to the version of the “fix” installation. If the current version of your WordPress website is crucial or if you plan to only replace some of the files, please check the version of your website in /wp-includes/version.php file and create the installation of the same version. Never mix the files of the different versions as it will most likely affect your website’s functionality.

You can always change the version for a new installation in the installation window under software setup.

 

  1. Scroll down the page and click Install once you’re done.
  2. Your new installation files will be located in the File Manager >> your domain name’s root folder
  3. To open the folder, double-click on it. To replace only the missing file (e.g. wp-settings.php), first locate the file in the new installation folder:
  4. Move this file to the root folder of your website that should be fixed. Right-click on the file >> Move >> Enter the path to your website’s root folder >> Move file(s).

You did it! Now the missing file is recovered and your website should be up.

 


Was this answer helpful?

« Back