Use this when you renew, upgrade or replace your Zamfoo Reseller license key. This guide is for the server’s root administrator.
Before you start
Have the replacement key ready. You need root SSH access.
If Zamfoo already reports that the key is missing or invalid, you don’t need SSH: paste the new key into the form on that WHM page and choose Save License Key & Activate. To replace a key that still works, edit the key file as below.
Steps
-
Back up the current key file.
Keep a private copy of
/usr/local/cpanel/whostmgr/docroot/cgi/zamfoo/zamfoo_reseller_license_key.phpbefore editing it. -
Open the file.
Run:
nano /usr/local/cpanel/whostmgr/docroot/cgi/zamfoo/zamfoo_reseller_license_key.php -
Replace the key.
Find the line beginning with
$license=. Replace only the text between the double quotes:$license="YOUR-ISSUED-KEY";Use your issued key in place of
YOUR-ISSUED-KEY. Keep the variable name, quotes and semicolon. -
Save your change.
In nano, press Ctrl+O, then Enter to save. Press Ctrl+X to close the editor.
-
Check the key in WHM.
Reopen WHM → Plugins → Zamfoo Reseller. If your plan includes Apex, also open Apex Operations Center.
What you should see
The license error clears and your purchased features are available.
If something goes wrong
Use $license, with the letter i. Some old comments show $l1cense, with the digit 1, which the reader does not use. If the new key is rejected, check the Resolve licensing errors and server changes.
Related guides
Follow the steps visually
Choose a step to review its instructions and reference screen. Terminal output is an example.
Back up the current key file
Keep a private copy of /usr/local/cpanel/whostmgr/docroot/cgi/zamfoo/zamfoo_reseller_license_key.php before editing it.
Example only. Nothing runs on a server from this guide. Replace placeholders before using a command yourself.
Loading this step’s screenshot…
Sample-data capture of the plugin interface. Where shown, the orange outline marks the relevant control. Select the image to enlarge it.