Directory Refresh Guide

From WHMCS Documentation

Revision as of 22:47, 6 December 2022 by John (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Refreshing a Directory

Refreshing directories can help to troubleshoot and resolve some errors. The example below refreshes the /modules/servers/ directory.

To do this:

  1. Download and unzip the WHMCS file set that matches the current version of your WHMCS. You can download current versions of WHMCS including Long Term support versions from WHMCS Downloads Page.
  2. Navigate to the directory to refresh /whmcs/modules/.
  3. Rename the unaltered ‘’’servers’’’ directory to contain the original name and the date. For example, servers_new_MM_DD_YYYY.
  4. Upload the unaltered directory to the parent directory within your WHMCS installation (in this example, the /modules/ directory).
  5. Rename the previous directory and include the date. For example,servers_old_MM_DD_YYYY.
  6. Revert the new directory name to the original name. For example, servers.

After you finish, check within WHMCS to ensure that refreshing the directory resolved your issue.

Restoring Customisations

After confirming that refreshing the directory has resolved your issue, you may need to restore any customisations.

To achieve this, you would need to copy the customisation from the ‘servers_old_MM_DD_YYYY directory to the now refreshed servers directory.

We recommend moving each customisation seperately and checking for errors within WHMCS in between each addition. This allows you to identify any problems by the specific module and allow you to choose whether to remove the customization or contact the third-party developer for help."

Cron Directory

Refreshing the cron directory may require additional steps, including updating your configuration in the config.php file.

To do this, use the instructions within the config.php file in the crons directory to uncomment the WHMCS path line and provide the full path to your WHMCS installation.

$whmcspath = /home/username/public_html/whmcs/;

In this example, the server runs cPanel & WHM, the account username is username, and whmcs is the WHMCS installation directory.