Corrupt File Errors


When installing, upgrading or using WHMCS, you encounter the following error, where /path/to/whmcs/ is the location of your WHMCS installation, and index.php is a filename:

The file /path/to/whmcs/index.php is corrupted.


This message has two possible causes:

  • The server environment does not include the required minimum version of ionCube Loader® and does not meet WHMCS’s system requirements.
  • The file is unreadable because something modified it.

The majority of the system’s PHP files are encoded using ionCube Encoder®, which compiles the software’s source code and protects it from direct modifications. If something does edit these files, your server cannot decode them into the original PHP code and they become corrupt.


To troubleshoot this issue, check to ensure that you meet our ionCube Loader requirements. If that isn’t the issue, check for corrupt files.

Check the ionCube Loader Minimum Requirement

Update ionCube Loader to the minimum required version. You may need to contact your system administrator or hosting provider to make this configuration change.


To do this on a cPanel & WHM server:

  1. Log in to WHM and go to Home » Software » EasyApache4.
  2. Click Customize for the current configuration.
  3. Select PHP Extensions.
  4. Use the Search filter to locate the ionCube Loader settings.
  5. Toggle the appropriate ionCube loaders option to the on position for your PHP version.
  6. Review and provision the new configuration.
  7. Return to WHMCS and refresh the page.

File Corruption

If your ionCube Loader version meets the system requirements, a file may be corrupt.


To fix this issue and replace the modified file with the original copy:

  1. Download a new copy of the WHMCS Full Release files from the WHMCS Members Area or your license reseller.
  2. Upload the Full Release .zip file to your server.
  3. Extract the WHMCS files, ensuring that they all overwrite successfully.
  4. Return to WHMCS and refresh the page.

If the problem occurs again, compare the corrupted file on your server to the new file. Look for any differences between the files. Then, contact your system administrator or hosting provider to investigate why the files changed after upload.

Last modified: June 14, 2024