Settings → Import → WHMCS Migration (also the Import From WHMCS card in System Settings) copies your WHMCS data into your Hostinvo workspace. Hostinvo connects to the WHMCS MySQL database with the details you give it, reads the data, and creates the same clients, products and services here. Nothing is changed in WHMCS, and nothing is created on your servers. The import needs a paid licence: it is not part of the free trial.
What is imported
| WHMCS | In Hostinvo |
|---|---|
| Clients | Name, company, email, phone, country, billing address, status (Active, Inactive or Closed), language and the currency WHMCS billed them in. A client without an email is skipped. Each client gets a client-area login without a password: they set one with Forgot password. A client whose email belongs to one of your team members is imported without a login, and the team member's account is left alone. |
| Product groups | Created as product groups. |
| Products | Created with their WHMCS prices and setup fees for each billing cycle (cycles switched off in WHMCS are skipped). One currency per product: your workspace currency when WHMCS has it, else the first currency it was priced in. One Time and Free products keep that type. A product with no price gets a monthly price of 0, and the import notes list it. |
| Services (hosting) | Created with their status, billing cycle, amount, next due date, domain and username. Active and Suspended stay as they are; Terminated, Cancelled and Fraud become Terminated; anything else becomes Pending. Active and Suspended recurring services renew from their next due date. One Time and Free Account services never renew. |
| Invoices and invoice lines | Created with their totals, tax, paid status and currency, when the tables exist. They keep the invoice number clients saw in WHMCS (else WHMCS-INV- and the WHMCS ID). Collections invoices stay Unpaid. |
| Transactions | Created as payments and transactions, with gateway fees, when the table exists. |
Before you start
- The WHMCS database details. They are in configuration.php in your WHMCS folder: $db_host, $db_port, $db_name, $db_username and $db_password.
- A MySQL user that can read the WHMCS database. A read-only user is best (example below).
- The Hostinvo server must be able to reach the WHMCS MySQL server. If WHMCS is on another server, allow remote MySQL connections from your Hostinvo server's IP address.
- On your own Hostinvo server, the queue worker must be running: the import runs in the background.
- Plan the cut-over: Hostinvo raises renewal invoices from the imported next due dates. Stop WHMCS's cron before (or right after) the final import, so clients are not invoiced twice.
Example: a read-only MySQL user for the import (run on the WHMCS MySQL server)
CREATE USER 'whmcs_reader'@'203.0.113.10' IDENTIFIED BY 'a-long-random-password';
GRANT SELECT ON whmcs.* TO 'whmcs_reader'@'203.0.113.10';
FLUSH PRIVILEGES;Replace 203.0.113.10 with your Hostinvo server's IP address and whmcs with your WHMCS database name. You can delete this user when the import is done.
Step by step
- 1
Fill the fields from configuration.php (optional)
Choose your WHMCS configuration.php file. It is read in your browser to fill the fields below; it is not uploaded or stored. If the file says localhost, the host is changed to host.docker.internal: that is only right when WHMCS runs on the same machine as Hostinvo. Otherwise put in the WHMCS server's address (see the examples).
- 2
DB Host and Port
The address of the WHMCS MySQL server, e.g. whmcs.example.com or 198.51.100.20. The port is usually 3306.
- 3
Database and Table Prefix
The WHMCS database name ($db_name), e.g. example_whmcs. Leave Table Prefix as tbl unless your WHMCS tables use another prefix.
- 4
Username and Password
The MySQL user that can read the database. The password goes, encrypted, to the import job only and is not saved with your settings.
- 5
Test Connection
Checks that Hostinvo can connect and that the WHMCS tables are there (clients, productgroups, products and hosting, with your prefix). You should see: Connection successful. The WHMCS tables were found. If tables are missing, their names are listed.
- 6
Start Import
Queues the import. The button shows Import Running until it finishes. Only one import runs at a time.
- 7
Read the Import Status
The status box on the right refreshes by itself every few seconds: Pending, then Running, then Completed or Failed with the reason. When it completes, it lists what was created, updated and skipped, and Notes to Review (skipped clients, placeholder products, prices of 0, shared emails).
Example 1: WHMCS on cPanel hosting
configuration.php on the WHMCS server
$db_host = 'localhost';
$db_port = '';
$db_username = 'example_whmcs';
$db_password = '********';
$db_name = 'example_whmcs';- localhost here means the WHMCS server itself, so in Hostinvo enter the server's address instead, e.g. DB host = server1.example-host.com, Port = 3306.
- In cPanel → Remote MySQL, add your Hostinvo server's IP address, otherwise the connection is refused.
- Database = example_whmcs, Username = example_whmcs (or your read-only user), Password = the database password.
- Test Connection, then Start Import.
Example 2: WHMCS and Hostinvo on the same machine
When Hostinvo runs in Docker and WHMCS's MySQL runs on the same machine, use DB host = host.docker.internal and Port = 3306. When WHMCS's MySQL runs in another Docker container, use that container's service name as the host.
Example 3: MySQL is not open to the internet
If your host does not allow remote MySQL, open an SSH tunnel from the Hostinvo server to the WHMCS server and point Hostinvo at the tunnel. Keep the tunnel open until the import completes.
On the Hostinvo server
ssh -N -L 0.0.0.0:3307:127.0.0.1:3306 user@whmcs-server.example.comThen use DB host = host.docker.internal (or the Hostinvo server's IP) and Port = 3307.
Import status
| Status | Meaning |
|---|---|
| Pending | Queued, waiting for the queue worker. If it stays here, the queue worker is not running. |
| Running | Reading WHMCS and writing to Hostinvo. |
| Completed | The import finished. Read the counts and the Notes to Review: some rows may have been skipped. |
| Failed | Nothing was imported: the whole import is one step, so a failure leaves no half-imported data. The reason is shown; fix it and start again. A database too large for the page fails with a message to run the command below. |
After the import
- Tell your clients to sign in with Forgot password: their WHMCS passwords cannot be moved.
- Check Products: prices and billing cycles, especially products the notes list with a price of 0.
- Services are records only, not yet linked to your servers. Add your Plesk server under Servers first, then link them in one of the two ways below.
- Running the import again updates what it brought last time: clients are matched by email, products, groups, services and invoices by their WHMCS ID (also after a rename in WHMCS). It refreshes names, contact details and amounts, and keeps what you changed here: product status and visibility, client language and currency, and logins that already have a password. A client whose email changed in WHMCS is added as a new client.
Linking imported services to Plesk
Each imported service is matched to a Plesk subscription by its domain, or by its username, and linked to that server. No account is created or changed in Plesk. Choose either option; both do the same thing.
- 1
Option 1: the button
Open Servers → your Plesk server. In Link Services Imported From WHMCS, press Link Services Now. The result shows how many services were linked and how many were not found on that server.
- 2
Option 2: the command
On your Hostinvo server, in the Hostinvo folder. The server page shows this command with the server's ID filled in, ready to copy; --all links every Plesk server at once.
docker compose -f docker-compose.prod.yml exec app php artisan plesk:sync-services --server=SERVER_ID docker compose -f docker-compose.prod.yml exec app php artisan plesk:sync-services --all
Troubleshooting
| Message | What to do |
|---|---|
| localhost inside Docker is not your WHMCS server | The host is localhost. Use the WHMCS server's address, or host.docker.internal when both run on the same machine. |
| WHMCS MySQL rejected the username or password | Wrong username or password, or the user is not allowed from the Hostinvo server's IP. Check the GRANT and cPanel → Remote MySQL. |
| Unable to reach the WHMCS MySQL host | A firewall blocks port 3306 or the address is wrong. Open the port for the Hostinvo server's IP, or use an SSH tunnel (example 3). |
| The WHMCS database name was not found on that MySQL server | Check the Database field against $db_name in configuration.php. |
| These WHMCS tables were not found | The database name is wrong, or the tables use another prefix: set Table Prefix. |
| An import is already running | Wait for the current import to finish. |
| Status stays Pending | The queue worker is not running on your Hostinvo server. Start it and the import continues. |
| Too large to import from this page | On your Hostinvo server run: docker compose -f docker-compose.prod.yml exec app php artisan whmcs:import-minimal --tenant=YOUR_WORKSPACE_ID --host=WHMCS_DB_HOST --port=3306 --database=WHMCS_DB_NAME --username=WHMCS_DB_USER --password='WHMCS_DB_PASSWORD' (it has no time limit; add --table-prefix if needed). |
Prefer we do it? The WHMCS Migration Service
On hostinvo.dev, when you buy a new licence, you can add the WHMCS Migration Service, priced by your number of WHMCS clients (up to 10, 11 to 50, 51 to 100, more than 100). After payment a ticket opens in your account under Support: Hostinvo's team arranges the migration there and asks for your WHMCS access in the secure details box. It is not offered with renewals or upgrades.