Version: 1.0
Module Type: Server/VPS Provisioning Module
Compatibility: WHMCS 8.0+, PHP 7.4+
- VDC Lifecycle Management – Create, update, suspend, and delete VDCs
- Resource Scaling – Dynamically adjust CPU, memory, and storage
- Usage Tracking – Monitor real-time resource consumption
- Automated Billing – Usage-based charging with WHMCS invoice integration
- Multi-tenant Support – Automatic tenant isolation and management
- API Integration – Full REST API integration with MultiPortal
¶ How to Install and Set Up the Open-Source WHMCS MultiPortal Module
- Checks for an existing tenant by client name
- Creates a new tenant if none found
- Associates tenant with reseller account
- Stores tenant UUID in a custom field
- Configurable CPU cores (1–128)
- Memory allocation (1–512 GB)
- Multiple storage policy support
- Dynamic storage capacity allocation
- Supports multiple storage policies
- Dynamically fetches policies via API
- Allocates capacity per policy
- Tracks usage per storage policy
- Traditional hosting model
- Fixed monthly/annual pricing
- Reserved resources regardless of usage
- Predictable costs
- Usage-based billing
- Hourly tracking of resources
- Automatic charge calculation
- Optimized for cost efficiency
- Tracks CPU core-hours, memory GB-hours, and storage GB-hours
- Breaks down usage per resource
- Creates invoices automatically via hooks
- Synchronizes usage and calculates taxes
- Displays VDC status and resource allocation
- Real-time usage meters with progress bars
- CPU utilization (%)
- Memory usage breakdown
- Storage consumption per policy
- Historical usage data
- Creation date, configuration details
- Allocation type and billing status
- Create VDC: Accept order → Create → Auto tenant check → Provision → Success message
- Update Resources: Modify configurable options → Update VDC → Confirm changes
- Suspend/Unsuspend: Simple toggle; updates access and notifies client
- Sync Data: Manual or automatic (cron job) to refresh configuration and usage
- View Usage: Displays real-time CPU, memory, storage, VM count, uptime
- PAYG Billing: Manual sync or automatic invoice hooks
- Delete VDC: Two-step confirmation for safety
- Dashboard: Shows status, resources, usage, and billing info
- Usage Metrics: Real-time CPU, memory, and storage usage with visual indicators
- PAYG Display: Shows period usage, estimated charges, rates, and billing dates
- Resize VDC: Admin or client request → Update resources → Apply changes
- Add Storage: Adjust storage quantity → Update configuration → Instant capacity
- Monitor Performance: Regular usage checks, alerts for high utilization
- Creation Fails: Verify API credentials, DC ID, reseller UUID, and logs
- Storage Policies Missing: Check DC policies, API connectivity, rerun setup
- Missing Usage Data: Validate data availability, date range, API, and logs
-
Enable WHMCS Module Log
-
Check logs:
- Module:
/modules/servers/multiportal/logs/
- API: Debug output
-
Can I use custom storage policy names?
Storage policies are dynamically fetched from your DC configuration.
-
How often should I sync usage data?
Daily sync is recommended for PAYG services.
-
Can I modify the module code?
Yes, it’s open-source. Follow the developer guide.
-
Resource limits?
Configurable: CPU (1–128), Memory (1–512 GB), Storage (per policy).
-
Failed provisioning?
Check logs, API connectivity, and resource availability.
-
Multiple data centers?
Yes, create separate products for each DC.
- GitHub Issues: Report bugs and request features on GitHub