How To Update WHMCS Module
From ModulesGarden Wiki
(Difference between revisions)
(→Module Cron Commands) |
|||
Line 69: | Line 69: | ||
* '''Check available product versions''' for updates: | * '''Check available product versions''' for updates: | ||
− | php cron.php | + | php cron.php upgrade list |
* '''Run an upgrade to a specified version''' (replace <version> with target version number): | * '''Run an upgrade to a specified version''' (replace <version> with target version number): | ||
− | php cron.php | + | php cron.php upgrade run <version> |
''for example:'' | ''for example:'' | ||
− | php cron.php | + | php -q /.../whmcs/modules/addons/WordressManager/cron/cron.php upgrade run 3.5.0 |
* '''Activate the module''' (triggers module logic without affecting WHMCS activation): | * '''Activate the module''' (triggers module logic without affecting WHMCS activation): | ||
− | php cron.php | + | php cron.php activate |
* '''Deactivate the module''' (triggers module logic without affecting WHMCS activation): | * '''Deactivate the module''' (triggers module logic without affecting WHMCS activation): | ||
− | php cron.php | + | php cron.php deactivate |
* '''Deactivate the module''' and '''remove database tables''' (irreversible action, permanently deletes module-related tables): | * '''Deactivate the module''' and '''remove database tables''' (irreversible action, permanently deletes module-related tables): | ||
− | php cron.php | + | php cron.php deactivate --remove-database-tables |
|} | |} | ||
<!-- | <!-- |
Revision as of 12:18, 4 March 2025
This guide provides essential instructions for updating any ModuelsGarden modules for WHMCS. Follow the steps one by one to ensure a smooth update process while minimizing the risk of data loss or unexpected issues. Carefully review the entire guide before proceeding to avoid potential complications. |
Update Process
To successfully update a module, follow these steps: |
1. Backup your WHMSC installation:
|
2. Download the latest version of the module from our client area. |
3. Remove the old module files:
|
4. Upload and extract the new files:
|
5. Adjust the license file (if required):
|
6. Clear cache:
|
7. Check for additional update steps:
|
8. Activate the updated module:
|
9. Reissue the license:
|
Module Cron Commands
The following cron commands are available for managing modules based on the new framework: |
php cron.php upgrade list
php cron.php upgrade run <version> for example: php -q /.../whmcs/modules/addons/WordressManager/cron/cron.php upgrade run 3.5.0
php cron.php activate
php cron.php deactivate
php cron.php deactivate --remove-database-tables |
Conclusions
Following these steps will ensure proper module management in WHMCS. Always back up your installation before making changes, and verify the module functionality after updating. If any issues arise, refer to your module documentation or contact our support team for assistance. |