Home VirtualizationHow to Connect Virtualizor with WHMCS for Automated VPS Provisioning

How to Connect Virtualizor with WHMCS for Automated VPS Provisioning

by Knowledge Base Linux
How to Connect Virtualizor with WHMCS — How to Connect Virtualizor with WHMCS for Automated VPS Provisioning

This article covers How to Connect Virtualizor with WHMCS in detail. Manual provisioning does not scale. The moment an order requires you to log in to a panel, pick a node and type an IP address, your “instant VPS” store is neither instant nor a store. The Virtualizor WHMCS integration fixes that: the official WHMCS module talks to your Virtualizor master over its API, so a paid order creates the VPS, assigns an IP from the right pool, emails the customer their details and unlocks self-service controls, all without you touching anything. This guide connects the two systems and then proves the chain with a real test order. It assumes your panel, plans and IP pools already exist; if they do not, follow our guides to install Virtualizor and to set up Virtualizor plans, IP pools and OS templates first.

How the Integration Works – How to Connect Virtualizor with WHMCS

WHMCS never talks to your hypervisors. It calls the Virtualizor master on its admin port (4084 for HTTPS) using an API key and API password that you generate in the panel. When an order is accepted, WHMCS sends a create request naming a plan, a node and an OS; Virtualizor builds the VPS and returns its ID, IP addresses and credentials, which WHMCS stores on the service and prints into the welcome email. After that, the module proxies customer actions (start, stop, reboot, reinstall, VNC console, bandwidth graphs) and lifecycle events: WHMCS suspensions suspend the VPS, terminations delete it.

Step 1: Create API Credentials in Virtualizor – How to Connect Virtualizor with WHMCS

Log in to the Virtualizor admin panel and open the API credentials area in the configuration section. Note the API Key and API Password for the master. If your panel restricts API access by IP address, whitelist the WHMCS server’s outgoing IP, and make sure the WHMCS host can reach the master on port 4084: a surprising number of “the module does not work” tickets are simply a firewall between the billing box and the master.

# From the WHMCS server, verify reachability of the master panel
curl -k https://MASTER-IP:4084

Step 2: Install the Virtualizor WHMCS Module

Download the WHMCS module package from the Virtualizor website and upload it to your WHMCS installation so the module lands in the standard server-modules directory:

# On the WHMCS server
cd /path/to/whmcs/modules/servers/
unzip virtualizor_whmcs_module.zip
ls virtualizor/   # should show the module's PHP files

The module is plain PHP and uses cURL to reach the master, so confirm the WHMCS server’s PHP has the curl extension enabled. No separate license is needed for the module itself; your Virtualizor license covers it.

Step 3: Add the Master as a Server in WHMCS

In WHMCS admin, go to Setup → Products/Services → Servers and add a new server:

  1. Name: something meaningful, for example “Virtualizor Master”.
  2. Hostname / IP Address: the master’s IP or a hostname that resolves to it.
  3. Type: select Virtualizor.
  4. Username: your Virtualizor API Key. Password: your API Password.
  5. Secure: tick it to use SSL on port 4084 (recommended). Only untick for a first connectivity test on the non-secure port.

Save and use the Test Connection button. A success message here means credentials, port and SSL are all correct; fix failures at this stage, not after products exist. Then create a server group, add the master to it, and set the fill behaviour if you run several masters.

Automated order pipeline that connects Virtualizor WHMCS provisioning to a new server

Step 4: Build the Product

Create a product in a VPS product group and open its Module Settings tab. Choose the Virtualizor module and the server group, then map the product to the panel:

  • Plan: select the exact Virtualizor plan this product buys. The name must match the plan in the panel, or provisioning fails with a plan error.
  • Virtualization and node: pick the virtualization type and either a fixed slave node or automatic selection when you have several slaves.
  • Storage and IPs: where the module exposes them, confirm the storage and the number of IPv4/IPv6 addresses match what the plan promises.
  • Operating system: either fix one template per product (“Ubuntu 22.04 VPS”) or, better, add a Configurable Option listing your OS templates so one product sells every OS. The option values must match the template names in Virtualizor.

Under the product’s automation settings, choose automatic setup on successful payment (or on first payment if you screen orders manually), and let WHMCS generate the welcome email that carries the VPS IP, root password and enduser panel link on port 4082.

Step 5: Prove It with a Test Order

Never announce the product before this rehearsal. Place an order as a test client, pay it with an offline or test gateway, and watch the full chain:

  1. The service appears in WHMCS as active with an IP and a Virtualizor service ID.
  2. The VPS exists in the Virtualizor panel, on the right node, with the plan’s resources and the chosen OS.
  3. The customer can log in to SSH and to the enduser panel, and the WHMCS client area buttons (reboot, reinstall, VNC) actually work.
  4. Suspend the test service in WHMCS and confirm the VPS stops; unsuspend it; finally terminate it and confirm the VPS and its IP are released back to the pool.

Troubleshooting the Virtualizor WHMCS Connection

  • Test Connection fails: check the firewall path to port 4084, then the API credentials, then SSL. Temporarily test without Secure to separate a certificate problem from a credentials problem.
  • “Plan not found” during provisioning: the plan name in the product’s module settings does not match the panel, or the plan belongs to a different virtualization type.
  • VPS created with no IP: the pool for that slave is empty or not assigned to the node. The module can only hand out what the panel has.
  • Actions work in the panel but not in WHMCS: enable the WHMCS module log (Utilities → Logs → Module Log), repeat the action and read the raw API response; it names the failing parameter almost every time.
  • Bandwidth graphs stay empty: WHMCS collects usage on its cron. Confirm the WHMCS system cron runs every five minutes and that the Virtualizor master reports usage for that VPS.

Frequently Asked Questions

Can one WHMCS product deploy on several nodes?

Yes. Assign the plan to a server group in Virtualizor and let the module select the node automatically, or steer products by location with separate products per node. Automatic selection spreads new VPS across your fleet so one node does not fill up first.

Does the module work with Proxmox nodes in Virtualizor?

Yes, as long as the plan you map is a Proxmox-type plan. WHMCS does not care which virtualization sits underneath; it only names the plan, and Virtualizor routes the build to the Proxmox slave.

What do customers use to manage their VPS?

Both doors work: the WHMCS client area exposes the common actions through the module, and customers can also log in to the Virtualizor enduser panel (port 4082) with the credentials from their welcome email for the full feature set, including VNC and reinstall.

Is there a separate module for resellers?

Virtualizor offers a separate cloud/reseller-oriented module for selling reseller accounts that can create their own VPS. For standard retail VPS products, the module described in this guide is the correct one.

Conclusion

With the Virtualizor WHMCS module connected, tested and logging cleanly, your store sells while you sleep: orders provision from the plans and pools you built earlier, and lifecycle events stay in sync between billing and panel. Keep the test-order rehearsal as a ritual after every module or WHMCS upgrade, and the automation will stay as reliable as the day you set it up.

You may also like

KbLinux

Typically replies within a day

Hello, Welcome to the site. Please click below button for chatting me through Telegram.