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
- General Settings: Company name, logo, currency
- Payment Gateways: Stripe, PayPal, bank transfer
- Email Templates: Customize welcome, invoice, payment confirmation emails
- 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:
- Download from the Pterodactyl community
- Upload to
/whmcs/modules/servers/pterodactyl/ - 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
- Customer selects plan on your website
- WHMCS processes payment
- WHMCS calls Pterodactyl API: "Create server with these specs"
- Pterodactyl allocates resources on the appropriate node
- WHMCS sends welcome email with panel login details
- 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.
