Updating WHMCS

You can check for the most recent updates and update WHMCS quickly and easily from directly within the Admin Area.

You can access this feature at Utilities > Update WHMCS.

Checking for Updates

The system automatically checks for updates periodically. When an update becomes available, a notification will appear in the Admin Area.

You can also check for updates manually by clicking Check for Updates. You may need to do this to see recent releases prior to the next automated check.

For steps and more information, see Check for Updates.

Updating WHMCS

If you see a An update is available message, you can click Update Now to begin an automatic update.

Make certain that you have performed all of our recommended steps to prepare before initiating an upgrade.

For steps to upgrade WHMCS, see Update with the Automatic Updater.

Requirements for Automatic Updates

WHMCS has several system requirements for automatic updates:

  • A PHP memory limit of at least 128 MB.
  • At least 250 MB of free disk space.
  • The PHP allow_url_fopen setting is enabled.
  • The PHP max_execution_time setting is 60 seconds or more.
  • The PHP Zip Extension or the proc_open PHP function are enabled.
  • The PHP open_basedir setting includes the entire WHMCS document root.

Verifying the Upgrade

After the update finishes, check to ensure that WHMCS is working properly. We recommend testing all of the important features and functions in WHMCS, like logging in as a client and as an admin, viewing products, submitting support tickets, and placing new orders.

We also recommend monitoring the alert messages at Configuration () > System Health for the 24 hours following the update:

System Health

Update Settings

You can also configure settings for your update channels, set a maintenance message to display during updates, and specify the directory to use for staging update files.

Update Settings in WHMCS

Modifying the update configuration requires the Modify Update Configuration administrator role permission, which is separate from the Update WHMCS permission.

Update Channel

You can choose the update channel for your WHMCS installation. This setting indicates the least-stable version that you want to use for updates.

For steps to update this setting, see Set the Update Channel.

WHMCS ships new updates using the following update channel options:

Update ChannelDescription
StableOnly receive Stable updates (General Availability releases) to your installation.
We recommend this update channel for most installations.
Current VersionOnly receive maintenance updates for the currently-installed major and minor version.
  • For example, if you are using a Long-Term Support version and we release a patch for it, this channel applies the patch but will not upgrade you to a later WHMCS version.
  • This is useful for applying minor updates and security releases (see below).
Release CandidateReceive releases after beta testing but before we release them to the Stable tier.
BetaReceive the latest versions of WHMCS as we release them to the Beta tier.
We only recommend selecting this update channel for development and testing installations.

Patch and Maintenance Release Updates

If you are on a WHMCS version that is in Long-Term Support and we issue a patch for that version, you can perform an update to apply the patch without moving to a newer WHMCS version.

To do this:

  1. Select the Current Version update channel.
  2. Click Check for Updates to refresh the available version.
  3. Proceed with your update as usual.

You may wish to change this setting back to Stable after updating to ensure that future checks display the most recent stable version.

Temporary Update Path

The temporary path allows you to stage files during an update. For security reasons, ensure that this directory is outside of the public document root, like the attachments, downloads, and templates_c directories.

  • The path must be an absolute path (for example, /var/www/html/update_temp instead of ~/update_temp).
  • The PHP user must be able to write to this path.
For steps to update this setting, see Set the Temporary Update Path.

Maintenance Message

Use this option to set a message to display to other admins and users whenever an update is in progress.

For steps to update this setting, see Set a Maintenance Message.

Update File Changes

During the update process, WHMCS will update all of the core files to ensure that WHMCS continues to work correctly. This includes updating the default templates and order forms.

Updates overwrite the following files:

  • Language Files (~/whmcs/lang and ~/whmcs/admin/lang)
  • Default Templates (~/whmcs/templates/six and ~/whmcs/templates/orderforms)
  • WHMCS-Supplied Modules (~/whmcs/modules/)
  • Core WHMCS Files

When you initiate an update at Utilities > Update WHMCS, WHMCS will scan the default template directories. You will see a warning if the scan finds any customizations that updating would overwrite.

Customizations to Open-Source Files

We provide some WHMCS files as open-source code, in order to allow customization (for example, the /aff.php file). Make certain that you back these customizations up before performing updates and restore them manually after the update is complete.

Preserving Customizations

If you have directly edited the files above, updating will overwrite your changes.

When you customize parts of WHMCS, make certain to use the recommended methods:

  • Copy the desired files if you want to customize a theme or template. Make certain that you do not store your customizations in the default template folders.
  • Use override files if you want to customize a locale.
  • Ensure that you create a uniquely-named copy of any modules that you customize.
  • Ensure that you create override files for any changes to the shipped dist.whois.json and dist.additionalfields.php files. To avoid overwriting your customizations, you must store changes in the appropriate override files.

Troubleshooting

You can find the log of Automatic Updater actions in the WHMCS database. Review the tblupdatelog table for the most recent entries (the highest id values).

We recommend using a tool like phpMyAdmin to review the database table’s contents.
For more information, see Troubleshooting Updates.

Checking for Updates

You may encounter the following common issues while checking for available WHMCS updates:


Error or IssueCauseNext Steps
Unable to Perform Automatic UpdatesThis error can have many causes.Automatic Updates Unavailable
Check for Updates FailedThis error can have many causes.Check for Updates Failures
Make certain that you have selected a valid Update Channel and then try againYou have not correctly configured the Update Channel setting.Update Channel Errors

Updating

You may encounter the following common issues while updating or when an update fails:


Error or IssueCauseNext Steps
You are attempting to access the admin area via a directory that is not configured. or You are attempting to access the admin area via a directory that is different from the one configured. or You are attempting to access the admin area via a custom directory, but we have detected the presence of a default "admin" directory too. or The request path cannot be resolved.You are attempting to access the wrong directory, there is a problem in your admin path configuration, or your admin directory is out-of-date.Admin Directory Errors
The Admin Dashboard appears blank and widgets will not load.There may be a problem with your system’s table collation values.Blank Admin Dashboard
Server Command Error - Curl Error - 28 connect() timed out or cURL error 28: Operation timed outAn operation timed out due to a connection issue.cURL Timeout Errors
Down for Maintenance (Err2)There is a mismatch between the database version and WHMCS version or PHP version.Down for Maintenance Errors
A fatal error occurred while fetching the updateThis error may occur due to issues with PHP, your server, or your network.Fatal Error Fetching Update
Error: failed to open stream: operation failedThe application is unable to confirm the validity of the SSL certificate.File Download Errors
Fatal error: The file /home/username/public_html/whmcs/modules/gateways/ewayuk.php was encoded by the ionCube Encoder for PHP 5.3 and cannot run under PHP 7.0. Please ask the provider of the script to provide a version encoded with the ionCube Encoder for PHP 5.6. in Unknown on line 0There is a PHP version encoding error due to outdated file for a previous WHMCS version.ionCube Fatal Decoding Errors
Network Issue - Failed Communication with Update ServerThis error indicates that your server could not connect to our update server.Network Issue Errors
The most recent WHMCS release does not display when you check for available updates.The page did not refresh, your settings exclude the new version, or your system does not meet the minimum requirements.New Version Not Appearing
no existing installation was detected or WHMCS Not Installed ErrorThe configuration.php file is not in the expected location, it is not readable, or it does not contain the details for your MySQL® database.No Existing Installation Errors
Apply update dry-run detected x permission issuesExisting file permissions are incorrect.Update Dry Run Errors
Update Failed An error occurred that prevented the update from completing successfully.You can find the cause of the issue by examining the full output below the error message.Update Failed Errors
Update Message Validation Issue This update contains notification messages that WHMCS could not validate.Cryptographic validation is failing.Update Message Validation Errors

After Updating

You may encounter the following common issues after you finish applying an update:


Error or IssueCauseNext Steps
Updater unable to add default database tls options to configuration file: Application configuration file is not writableThe permissions for the configuration.php file prevented the update process from adding new placeholder entries.Application Configuration Errors
After applying an update, some WHMCS features do not function normally, display errors, display with poor formatting, or do not display at all.In most cases, this behavior is due to outdated customized template files.Feature Issues After Update
`WHMCS\Exception\Model\GuardedForUpdate: The \"WHMCS\Config\Setting\" record \"setting\" property is guarded against updates in /path/to/whmcs/vendor/whmcs/whmcs-foundation/lib/Model/Observer.php:0There are files from an earlier version of WHMCS in the /admin directory.GuardedForUpdate Errors
A recent WHMCS update failed to remove legacy modules. These modules may cause negative behavior if you upgrade PHP and leave them on the system.The Automatic Updater utility was unable to remove one or more discontinued and unused modules.Legacy Module Removal Errors

Last modified: 2025 February 6