Automating Your Hosting Business: WHMCS + Pterodactyl Integration

Published on

How to automate hosting provisioning with WHMCS and Pterodactyl. Covers setup, automatic server creation, billing sync, and reducing manual work.

Written by Space-Node Team – Infrastructure Team – 15+ years combined experience in game server hosting, VPS infrastructure, and 24/7 streaming solutions. Read author bio →

Manual server provisioning doesn't scale. When every new customer requires you to manually create their server, your growth ceiling is your available time. Automation removes that ceiling.

The Automation Stack

Customer signs up on WHMCS  →  Payment processed
                             →  WHMCS creates Pterodactyl server
                             →  Customer receives login credentials
                             →  Server is ready immediately

No manual intervention. Customer signs up at 3 AM Sunday? Server is ready in 60 seconds.

WHMCS Setup

Installation

WHMCS runs on PHP:

# Requirements
PHP 8.1+
MySQL/MariaDB
IonCube Loader

Basic Configuration

  1. General Settings: Company name, logo, currency
  2. Payment Gateways: Stripe, PayPal, bank transfer
  3. Email Templates: Customize welcome, invoice, payment confirmation emails
  4. Products/Services: Define your hosting plans

Creating Products

For game server hosting:

  • Product name: "Minecraft Server - Standard"
  • Billing cycle: Monthly / Annually
  • Price: €15/mo or €150/year
  • Module: Pterodactyl (after integration)

Pterodactyl Integration

WHMCS Module

Install the Pterodactyl WHMCS module:

  1. Download from the Pterodactyl community
  2. Upload to /whmcs/modules/servers/pterodactyl/
  3. Configure in WHMCS → Setup → Products → Servers

Server Configuration

In WHMCS server settings:

  • Hostname: panel.yourbrand.com
  • API Key: Your Pterodactyl application API key
  • Node: Which physical server to deploy to

Product Configuration

For each WHMCS product, configure Pterodactyl settings:

  • Egg: Which game/application (Minecraft, FiveM, Rust, etc.)
  • Memory: RAM allocation
  • CPU: Core allocation or percentage
  • Disk: Storage allocation
  • Database limit: If applicable

Automatic Provisioning Flow

  1. Customer selects plan on your website
  2. WHMCS processes payment
  3. WHMCS calls Pterodactyl API: "Create server with these specs"
  4. Pterodactyl allocates resources on the appropriate node
  5. WHMCS sends welcome email with panel login details
  6. Customer accesses their server immediately

On Cancellation

Customer cancels → WHMCS suspends → Pterodactyl suspends server
Grace period expires → WHMCS terminates → Pterodactyl deletes server

Additional Automation

Automatic Upgrades

Customer upgrades their plan through WHMCS:

  • Payment difference calculated automatically
  • Pterodactyl resources updated via API
  • Server restarts with new resources
  • No support ticket needed

Overdue Invoices

Invoice overdue → WHMCS sends reminder
3 days overdue → WHMCS sends second notice
7 days overdue → WHMCS suspends service (Pterodactyl suspends server)
30 days overdue → WHMCS terminates service

Automatic Backups

Script that runs daily:

#!/bin/bash
# Backup all active servers
for server in $(pterodactyl-cli list-servers --format json | jq -r '.[].id'); do
    pterodactyl-cli create-backup --server "$server"
done

Email Automation

Welcome Email

Triggered automatically after purchase:

Subject: Your [Game] Server is Ready!

Hi {$client_first_name},

Your server has been set up and is ready to use:

Panel Access: https://panel.yourbrand.com
Username: {$service_username}
Password: {$service_password}
Server Address: {$server_ip}:{$server_port}

Getting Started Guide: https://yourbrand.com/docs/getting-started

Need help? Contact us at support@yourbrand.com

Renewal Reminders

WHMCS sends automated reminders before invoices are due, reducing involuntary churn from expired cards.

Scaling

With full automation:

  • 0-100 customers: One person manages everything
  • 100-500 customers: Add support staff (provisioning is handled)
  • 500+: Focus on marketing and product development

The infrastructure from Space-Node combined with WHMCS + Pterodactyl automation means you spend your time growing the business, not provisioning servers.

Space-Node Team

About the Author

Space-Node Team – Infrastructure Team – Experts in game server hosting, VPS infrastructure, and 24/7 streaming solutions with 15+ years combined experience.

Since 2023
500+ servers hosted
4.8/5 avg rating

Our team specializes in Minecraft, FiveM, Rust, and 24/7 streaming infrastructure, operating enterprise-grade AMD Ryzen 9 hardware in Netherlands datacenters. We maintain GDPR compliance and ISO 27001-aligned security standards.

View Space-Node's full team bio and credentials →

Launch Your VPS Today

Get started with professional VPS hosting powered by enterprise hardware. Instant deployment and 24/7 support included.

Automating Your Hosting Business: WHMCS + Pterodactyl Integration