Migrate from WHMCS

The WHMCS migration tool included in Paymenter Plus with Migration on Alma Linux 10 moves your WHMCS data into your new Paymenter panel from the admin panel: you upload your WHMCS backup, check, and import. It holds billing until you have checked everything and are ready.
 

What moves, and what does not

  • Moves: clients and their contacts, administrators, products and their categories, configurable options, orders, services and their add-ons, domains, invoices and their items, payments and refunds, tax rules, promotions and support tickets. Your WHMCS invoice numbers are kept, so your clients can find their invoices by the numbers they were sent. Where two WHMCS invoices share a number, or an invoice without a number of its own matches another’s, one of them is given a marked number; the check lists every one before you import.
  • Not migrated: saved cards and gateway subscriptions (your clients add their payment method again), registrar connection settings, server and service passwords (encrypted with your WHMCS installation’s own key, so you re-enter them in Paymenter), email templates, and data held by WHMCS add-on modules.
  • Recurring card payments stop until each client adds a payment method in Paymenter. The check tells you how many of your clients this affects before anything is imported.

Before you start

  • Install first. Complete the One-Click Installation and sign in to the admin panel once. The installer turns the migration on, so System, Migrate from WHMCS is already in the menu.
  • Import into a new panel. If the panel already holds clients, products or invoices, the check stops and lists what is in the way, and nothing is changed.
  • WHMCS version 8 is supported. The backup can be up to 512 MB as you upload it.

Step 1: Get a backup of your WHMCS database

There are two ways. Try the first; if it fails, use the second.

Option 1: download it from WHMCS (suitable for smaller WHMCS installations)

  • In your WHMCS admin area, open Utilities, then System, then Database Status, and click Download Database Backup.
  • Keep the page open. WHMCS builds the whole backup before the download starts, which can take several minutes.
  • If you see a timeout or a gateway error (for example error 504 or, behind Cloudflare, error 524), do not try again. WHMCS keeps building the backup on your server after the browser gives up, and each attempt leaves another full copy of your database in the server’s temporary folder. Use Option 2 instead.

Option 2: create it on your WHMCS server (reliable for any size)

This needs SSH access to the server WHMCS runs on. It is fast, the file is smaller, and nothing can time out.

  • Find your database details in WHMCS’s configuration.php, in the folder WHMCS is installed in. You need four values: $db_host, $db_name, $db_username and $db_password.
  • Run this command on the WHMCS server. It is one universal command: it works whether your WHMCS database runs on MySQL, an older MariaDB or a newer MariaDB, because it picks the backup tool your server has (newer MariaDB versions no longer include mysqldump).
$(command -v mariadb-dump || command -v mysqldump) --single-transaction --no-tablespaces -h DB_HOST -u DB_USER -p DB_NAME | gzip > whmcs-backup.sql.gz
  • Before you run it, replace the three values in capitals with your own from configuration.php: DB_HOST with the $db_host value, DB_USER with the $db_username value, and DB_NAME with the $db_name value. Leave -p exactly as it is. For example, if $db_host is localhost, $db_username is whmcs_user and $db_name is whmcs_db, the middle of the command reads -h localhost -u whmcs_user -p whmcs_db.
  • When it shows Enter password:, paste the $db_password value and press Enter. Nothing appears on screen while you paste; that is normal.
  • Check the backup is complete before you download it. Run zcat whmcs-backup.sql.gz | tail -1. It must show a line starting -- Dump completed on. If it shows nothing, or an error appeared after the password, the backup is empty: check the four values from configuration.php and run the command again.
  • Download whmcs-backup.sql.gz to your computer, for example with your SFTP client.
  • Tried Option 1 first? Remove the copies it left behind. On the WHMCS server, look in /tmp for files whose names start with sql or zip, owned by your web server user, and delete them once you have your backup.

Step 2: Upload it

  • In the Paymenter admin panel, open System, then Migrate from WHMCS. Upload a backup is selected.
  • Choose the file and click Upload: the WHMCS backup zip from Option 1, or whmcs-backup.sql.gz from Option 2.
  • Upload the WHMCS backup zip exactly as you downloaded it. Do not unzip it. The zip is how the page checks that the backup is complete, so the file from inside it is not accepted.
  • The file is sent in small parts, so a large backup is not stopped by an upload limit. If your connection drops, click Resume and it continues from where it stopped.

Step 3: Let it load, then check

  • When the upload finishes, the page checks the file and loads it in the background, showing its progress. You can leave the page; it carries on. WHMCS log tables the migration does not use are skipped, so this usually takes under a minute.
  • A file that is damaged, incomplete or not a WHMCS backup is refused with a sentence saying why and what to do. Nothing is loaded from it.
  • When it shows Your WHMCS backup is loaded, click Check. Nothing in your panel has changed at this point.
  • Read the result: what the import will change, what you need to do afterwards, and what is not migrated. Any check marked Stop must be fixed first; the page says how.

Step 4: Import

  • Tick the box to confirm you have read it, and click Import. A large WHMCS also asks you to confirm you have a backup of the Paymenter database, because its import saves step by step.
  • The import runs in the background and the page shows its progress. A typical WHMCS takes a few minutes.
  • If the import fails, the page says at which step and what to do. A normal-sized WHMCS is imported in one go, so a failure leaves your panel exactly as it was.

Step 5: Read the report and finish setting up

  • The page shows the report: what was imported, what was not and why, invoices with a marked number, and what you need to do, for example entering your server passwords and payment gateway keys.
  • Billing is on hold. Paymenter raises no invoices, sends no reminders and suspends nothing until you start billing, so you can check everything first. The report shows what the first billing run would do.

Step 6: Start billing

  • On the Migrate from WHMCS page, click Start billing. This opens Ready to start billing?
  • It checks what can be checked for you: that the scheduler is running, that outgoing mail is set up, that your payment gateways and servers have their settings, and that tax rates exist if your WHMCS charged tax. Each item shows OK or Fix, and where to fix it.
  • It then asks you to confirm what cannot be checked for you, such as cancelling the old gateway subscriptions so nobody is charged twice, and that your domains renew at your registrar.
  • It also shows what the first billing run will do: how many services it will invoice, suspend or terminate.
  • The final Start billing button becomes available when every check is OK and every box is ticked.

 

Important Notes:

  • Your WHMCS data stays on your instance.
    The uploaded file and the loaded copy of your data are kept on this instance only, and removed when the import ends, when you click Remove upload, or after 24 hours if you do not import. Nothing is sent anywhere else.
  • Keep WHMCS running until you have checked the report.
    The migration does not change your WHMCS installation or its database.
  • Prefer to connect to the WHMCS database directly?
    Choose Connect to a database on the same page and enter its details; the check, import and report are the same. A read-only database user is recommended. The command-line tool sudo /usr/local/bin/egl-import-whmcs.sh is also on the instance for a mysqldump file you have copied there.
  • Need a hand?
    Support is included with this edition. Email [email protected] before you start and we will help you plan the move.

 

CONTENTS