Move from ClientExec to ClientFence
The ClientExec import copies your ClientExec clients, packages, services, domains, billing and tickets into ClientFence. It reads ClientExec’s database directly and only reads it. It saves what it reads in a private file on your server, then imports that file with the same steps as the WHMCS import. Nothing changes in ClientExec, and nothing is emailed, charged or created on a server.
What you need
Section titled “What you need”- A fresh install. The import keeps ClientExec’s invoice numbers, so it does not start on an install that already has data.
- A database user that can read ClientExec’s database from your ClientFence server. Read
access (
SELECT) is enough. ClientExec’s database details are in itsconfig.php. - PHP’s
pdo_sqliteextension, which most PHP builds include. - The same payment gateways set up here.
Run the import
Section titled “Run the import”- Go to System → Settings → System and open the Migration tab (Super Administrators only).
- Under Move from, select ClientExec. Under Import from ClientExec, enter the database host, port, name, username and password, then select Save and test. If a plan was made from another system, saving deletes it after you confirm, and you make a new one.
- Select Read ClientExec and keep the page open. If it stops, fix the cause and select Go on reading ClientExec.
- Select Make the plan. It shows what was read and lists the server checks to fix. Check Clients with the most credit in the plan: imported credit pays the client’s next invoices automatically, so correct a wrong balance on the client’s Credit Balance tab right after the import.
- Select Start the import and keep the page open, then Check against ClientExec to compare the counts.
What comes over, and what does not
Section titled “What comes over, and what does not”Clients with their address, phone, VAT number, group, currency, notes and credit balance; product groups, packages and their prices and setup fees; domain extensions with their registration, renewal and transfer prices; services and domains with their renewal price and due date; invoices and their lines; payments; tickets with their replies and private notes; support departments; and tax rules. Each client’s language comes over. The add-ons a package has come over as add-ons of its service, with their own price, billing cycle and due date.
A client’s password comes over when PHP can check ClientExec’s hash of it, and works on the client’s first sign-in. Otherwise the client sets a new one with Forgot Password?, and the warnings name the client. A client marked as fraud in ClientExec comes over as closed. A package pending cancellation waits under Cancellation Requests, so it does not renew.
Not imported (the warnings name what was found):
- Saved cards. With the same Stripe account, Find saved cards links Stripe cards to the clients after the import: see Saved cards.
- Two-factor sign-in. Clients who used it set it up again.
- Coupons, and recurring charges that are neither a package’s fee nor an add-on’s.
- Package add-ons for new orders. Add them as addons, see Addons. Add-ons of domains are not imported.
- Ticket attachments.
- Refunds.
- Staff. Their replies keep their names.
- Packages other than domains billed weekly or every 4 years or more: ClientFence bills 1, 3, 6, 12, 24 or 36 months, or once. A package that renews and also has a one-time price keeps only its renewing prices. Domains keep terms of 1 to 10 years.
ClientFence charges one tax rate to every item of a taxable client. If ClientExec did not tax some packages or domains, tax comes over switched off: check the rules under System → Tax Rules, then turn on Enable Tax Support before new invoices are made. See Taxes. Imported invoices keep the tax ClientExec charged.
When you move over, stop ClientExec’s cron, so clients are not billed or emailed twice.
From the console
Section titled “From the console”For a large ClientExec install, run the same steps as the site user once the details are saved:
php console.php clientfence:whmcs-import clientexecphp console.php clientfence:whmcs-import planphp console.php clientfence:whmcs-import applyphp console.php clientfence:whmcs-import verifyAdd --restart to the first command to read ClientExec again from the start.

