Refresh a Directory
Refreshing directories can help to troubleshoot and resolve some errors.
Refresh a Directory
/modules/servers/ directory.To do this:
- Download and unzip the WHMCS file set that matches the current version of your WHMCS from the WHMCS Members Area or your license reseller.
- Go to the directory to refresh (for example,
/whmcs/modules/). - Rename the unaltered
serversdirectory to contain the original name and the date (servers_new_MM_DD_YYYY). - Upload the unaltered directory to the parent directory within your WHMCS installation (for example, the
/modules/directory). - Rename the previous directory and include the date (
servers_old_MM_DD_YYYY). - Revert the new directory name to the original name (
servers).
After you finish, check within WHMCS to ensure that refreshing the directory resolved your issue.
Restoring Customizations
After confirming that refreshing the directory has resolved your issue, you may need to restore your customizations.
To do this for the example above, copy the customization from the servers_old_MM_DD_YYYY directory to the now refreshed servers directory.
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 $whmcspath line and provide the full path to your WHMCS installation. For example:
$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.
Last modified: 2025 October 17