DigitalOcean Droplets For WHMCS
Contents
|
About DigitalOcean Droplets For WHMCS
DigitalOcean Droplets For WHMCS is a marvelous module intended for automatic provision and management of virtual servers in your WHMCS. You will be able to create and provision ready products to your customers, while they will be allowed to manage their products straightforwardly in your client area. |
- Admin Area Features:
✔ Create/Suspend/Unsuspend/Terminate Server |
✔ Migrate Server Between Nodes |
✔ Change Package - Supports Configurable Options |
✔ Change Password |
✔ Assign/Delete Virtual Machine By Name |
✔ Stop/Restart/Suspend/Migrate Virtual Machine |
✔ View Server Details And Status |
✔ View And Update Assigned IP Addresses |
✔ View Scheduled Tasks |
- Client Area Features:
✔ View Server Details And Status |
✔ Start/Stop/Restart/Suspend/Resume Server |
✔ Schedule And Manage Backups |
✔ Access noVNC Console |
✔ View Usage Statistics |
✔ View And Order New IP Addresses |
✔ Manage Firewall Rules |
✔ Change Password |
✔ Upgrade/Downgrade Product |
- Servers Monitor - Addon Features:
✔ Add/Edit Node |
✔ Check Nodes Status |
✔ View Nodes Usage And Statistics |
✔ View Virtual Machines List |
✔ Assign And Manage IP Pools |
- General Info:
✔ Requires Virtual Automation (PVA) |
✔ Supports DigitalOcean Droplets And DigitalOcean Droplets Containers |
✔ Supports High Availability Function |
✔ Server Resources Chosen During Order |
✔ Integrated With IP Manager For WHMCS - Easy IP Pools Management (Beta) (read more) |
✔ Integrated With Advanced Billing For WHMCS - Actual Server Resource Usage Billing (read more) |
✔ Integrated With Server Allocator For WHMCS - Automatic Assignment Of Specified Servers To Products (read more) |
✔ Multi-Language Support |
✔ Supports DigitalOcean Droplets And DigitalOcean Droplets Containers Up To Version 7 |
✔ Supports PHP 5.6 Up To PHP 7.2 |
✔ Supports WHMCS Template Six |
✔ Supports WHMCS V7 |
Installation and Configuration
This tutorial will show you how to successfully install and configure DigitalOcean Droplets For WHMCS. We will guide you step by step through the whole installation and configuration process. |
Installation
1. Log in to our client area and download the module. |
![]() |
2. In the downloaded file you will find two packages that support different PHP versions. As presented on the screen below, the first one is dedicated to PHP 5.6 up to PHP 7.0, while the second one is aimed at PHP 7.1 up to PHP 7.2. It does not apply to open source versions. Note: You can check the current PHP version in your WHMCS. To do so, proceed to 'Utilities' › 'System' › 'PHP Info'. |
![]() |
3. Extract the downloaded file and choose the one with the right PHP version. Upload and extract the PHP file into the main WHMCS directory. The content of PHP version files should look like this. |
![]() |
4. When you install DigitalOcean Droplets For WHMCS for the first time, you have to rename 'license_RENAME.php' file. File is located in 'modules/servers/DigitalOcean Droplets/license_RENAME.php'. Rename it from 'license_RENAME.php' to 'license.php'. |
![]() |
5. In order to configure your license key, you have to edit a previously renamed 'license.php' file. Enter your license key between quotation marks as presented on the following screen. |
![]() |
Activation of DigitalOcean Droplets Monitor
6. Firstly, you need to activate DigitalOcean Droplets addon. To do so, log in to your WHMCS and move to 'Setup' → 'Addon Modules'. Find 'DigitalOcean Droplets' and press 'Activate'. |
![]() |
7. In the next step you need to permit access to this module. To do so, click on 'Configure' button, tick 'Full Administrator' and press 'Save Changes' . |
![]() |
8. In order to allow module to run smoothly, go to your addon → 'Installation' tab and add two cron jobs marked on the following screen. Suggested execution time for 'slowCron' - each 5 minutes. |
File:DOD 6 1.png |
Configuration of Server
9. Now we will show you how to configure a new product. Go to 'Setup' → 'Products/Services' → 'Servers' and press 'Add New Server' . |
File:DOD 7.png |
10. Next, enter your server name, IP address, username and password. Choose 'DigitalOcean Droplets' from a dropdown menu and press 'Save Changes'. Note: Server you are using on WHMCS is in fact a node on your PVA server, not a whole PVA server. |
![]() |
11. It is time to create a server group, to do so click on 'Create New Group'. |
![]() |
12. Enter name, click on your previously created server, press 'Add' and afterwards 'Save Changes'. |
![]() |
Configuration of Product
13. In order to create and configure a product click on 'Setup' → 'Products/Services' → 'Products/Services'. Click on 'Create a New Group' . |
![]() |
14. Enter product group name and press 'Save Changes'. |
![]() |
15. When you have a product group, you can create your product. To create a product click on 'Create a New Product'. |
![]() |
16. Afterwards, choose your product group and type from dropdown menus, enter your product name and press 'Continue'. Note: 'Product Type' should be set to 'Dedicated/VPS Server'. |
![]() |
17. Now, go to 'Module Settings' section, choose both 'DigitalOcean Droplets' module name and your previously created server group from a dropdown menu. Next, click on 'Save Changes'. |
![]() |
18. From dropdown menus choose 'Base Node', 'Type', 'Public Network' and 'Private Network'. Note: 'DigitalOcean Droplets Container' server type can have only one routed network. |
![]() |
19. Depending on the server type that you have chosen, you may see different field names in 'Default Values' and 'Configurable Options' subsection. On the following screen we will show you the configuration of 'Virtual Machine' server type. |
![]() |
20. At 'Configurable Options' you can generate/update specific configurable options for product. Firstly, mark/unmark checkboxes at 'Settings to Generate' to specify which option you want to generate in your configurable options. |
![]() |
21. Now, it is time to define pages and functionalities visible for client in 'Client Area Configuration' subsection. You can do it by simply selecting/unselecting checkboxes next to a page/functionality you want to enable/disable. |
![]() |
Congratulations! You have just finished the installation and configuration of the module. Your clients should see something similar to the screen below. |
![]() |
Management
DigitalOcean Droplets For WHMCS allows your customers to manage their DigitalOcean Droplets accounts from the client area in your WHMCS system. You can monitor and manage each product from your WHMCS admin area. |
![]() |
Management of Addon
In 'Addons' → 'DigitalOcean Droplets' you can find all used virtual machines and nodes as well as instructions on how to install the module. |
Installation
At this tab you can find instructions on how to install DigitalOcean Droplets For WHMCS and configure the product. You can also find here a link to DigitalOcean Droplets For WHMCS Wiki which you are currently reading. |
File:DOD 29 4.png |
Servers Monitor
To add new node, press '+ Add Node' button. Afterwards, follow steps 9 to 21 of 'Droplets_VPS_For_WHMCS#Configuration_of_Server Installation and Configuration' instructions. |
![]() |
You can also view current node usage through pressing 'Usage' button, as presented on the following screen. |
![]() |
In 'Usage' tab you can view resource usage in specific time period for node that you chose. |
![]() |
To access virtual machines list on a particular node, press on 'Virtual Machines' . |
![]() |
'Virtual Machines' tab contains virtual machines list created on this WHMCS and node that you selected. You can view here basic information about virtual servers. |
![]() |
If you change your DigitalOcean Droplets server connection details, you can update connection credentials on your WHMCS through pressing 'Edit' next to altered node. |
![]() |
Afterwards, upgrade your connection details and confirm through pressing 'Save Changes'. |
![]() |
IP Management
Our DigitalOcean Droplets For WHMCS module supports management of IP addresses, but it needs IP Manager For WHMCS module to work correctly. To access it, go to 'Addons' → 'DigitalOcean Droplets' → 'Servers Monitor' and press 'IP Management' button. |
File:DOD 29.1.png |
As you can see, you can assign different IP Manager configurations to each network type. Let's add a new configuration to 'Host Only' network. To do so, press ' Create a new configuration for this network' button. |
File:DOD 29.2.png |
You will be moved to the IP Manager module where you can create a new configuration for DigitalOcean Droplets product. Provide your configuration name, assign it to DigitalOcean Droplets products, addons or server and press 'Create New Configuration' . |
File:DOD 29.3.png |
Now you can add IP pool through creating a new subnet. To do so, click 'Create New Subnet' button and follow the steps described here. |
File:DOD 29.4.png |
Successfully created IP pool can now be assign to your previously set DigitalOcean Droplets configuration. Go back to the IP Manager configuration list and press the 'Assigned Subnets' button. |
File:DOD 29.5.png |
Select created IP pool from the dropdown menu and press 'Assign Subnet' . |
File:DOD 29.6.png |
Once again move to the configuration list. You will now have to assign DigitalOcean Droplets configurable options that will be used to determine the number of IP addresses from the pool assigned to the DigitalOcean Droplets product. ip_number|Number of Public IP ip_number_secondary|Number of Private IP Click Droplets_VPS_For_WHMCS#Editing_Configurable_Options here for more information. If you already have configurable options set, press the 'Configurable Options' button to add a new relation. |
File:DOD 29.7.png |
Now you can add the defined DigitalOcean Droplets configurable option relations to your IP Manager. Specify what type of address to assign to the chosen 'Network ID' : public IP, private IP or both as a shared address. Important: If you decide to assign both public and private configurable options, as shown below, then you will also have to assign that configuration for the second network interface (if used). |
File:DOD 29.8.png |
Finally, go back to the DigitalOcean Droplets addon and assign the created configuration to the chosen network interface. |
File:DOD 29.8.png |
Congratulations, you have successfully completed the IP Manager configuration! Repeat the above steps for the second configuration in the same manner, or use the already created configuration to use shared IP pool. |
Management of Admin Area
At the admin area you can order basic options(2) as 'Create' , 'Suspend' , 'Unsuspend' , 'Terminate' and 'Change Package' . You can also order 'Server Actions' (3) such as 'Stop' , 'Restart' , 'Suspend' , 'Start' , 'Reinstall' , 'Resume' and 'Migrate' . |
![]() |
Reinstall
To reinstall your virtual server you have to stop it through pressing 'Stop' button.
Note: You are not able to reinstall 'Virtual Machine' server type. |
![]() |
Afterwards, press 'Reinstall' button. |
![]() |
Migrate
To migrate your virtual machine, choose server you want to migrate your virtual machine to. Afterwards, select node on this server from a 'Node' configurable option and press 'Save Changes' button. |
![]() |
Next, press 'Migrate' button. |
![]() |
Afterwards, popup should appear. Confirm migration through clicking 'Migrate' button. |
File:DOD 35.png |
Management of Client Area
Client area interface of DigitalOcean Droplets should look like the one on the screen below. As you can see, control panel contains useful options needed to manage a VPS. |
File:DOD 36.png |
Backups Management
In 'Backups Management' (5) you can order backup jobs or create backups. To create backup job press 'Create Backup Schedule' as shown on the screen below. Note: If two backup task are ordered in too small time interval, only one backup is created. |
File:DOD 37.png |
Now define backup description by typing its name into a textbox and choose backup type from a dropdown menu. You can choose whether to delete previous backup or not, through marking checkbox next to 'Remove Previous'. |
File:DOD 38.png |
You can also create a single backup. To do so, click on 'Create Backup' button as shown on the following screen. |
File:DOD 39.png |
Now enter backup description and select backup type from a dropdown menu. Afterwards, choose whether to delete previous backup or not, through marking checkbox next to 'Remove Previous'. |
File:DOD 40.png |
To restore Virtual Machine from the backup, simply press restore icon and 'Restore' button. |
File:DOD 41.png |
At the top of this page, your client can view current backup usage and backup limit. |
File:DOD 42.png |
Console
One of the most interesting functionalities is noVNC console(7) (which uses HTML5) where your clients can remotely manage server. To access it, simply press on the 'Console' button. A new window will be opened, so make sure your browser does not block it. Note: If the noVNC console does not work, make sure that it was enabled in your DigitalOcean Droplets panel. There you can also test if it works properly. |
File:DOD 43.png |
Firewall Management
Under 'Firewall Management' (9) section the client can set up firewall for their virtual server. They can 'Enable' / 'Disable' firewall(1), add new firewall rules(2), view existing rules list and manage existing rules(3). |
File:DOD 44.png |
Usage Statistics
At 'Usage Statistics' your client can view information about resource used by his virtual server. He can find resource usage and graphs of CPU, memory, bandwidth and disk. |
File:DOD 45.png |
IP Management
Here your client can find all IP addresses assigned to their virtual server. They can also order new IP addresses. |
File:DOD 46.png |
To order new IP addresses, press 'Order New IP'. Note 1: To order a new IP you have to generate configurable options for 'Number of Public IP' and 'Number of Private IP'. |
File:DOD 47.png |
Popup will appear, select IP address type and press 'Order'. |
File:DOD 48.png |
Management of Configurable Options
When you successfully set up a product, your client can order it by choosing amount of resources from default configurable options. |
File:DOD 49.png |
Editing Configurable Options
In case these options don't suit your needs, you can edit them. To do so, go to 'Setup' → 'Products/Services' → 'Configurable Option' . |
File:DOD 50.png |
Here you can view all products this configurable option group is assigned to. Now, let us show you how to edit options. Lets say you want to add an option to order VPS with 1000 GB disk. |
File:DOD 51.png |
You will see a popup window, so make sure your browser will not block it. Edit 'Maximum Allowed' textbox as shown on the following screen. |
File:DOD 52.png |
Hiding Configurable Options
If you decide to hide configurable options from a client order form, follow steps below. Firstly, go to 'Setup' → 'Products/Services' → 'Configurable Option'. |
File:DOD 53.png |
Afterwards, tick 'Hidden' checkboxes next to configurable options you want to hide. On the screen below you can see hiding of 'Number of Public IP' and 'Number of Private IP'. |
File:DOD 54.png |
Management of Billing
When you combine DigitalOcean Droplets For WHMCS with Advanced Billing For WHMCS, you will be able to set up additional billing options. Module allows you to charge your customers based on the server resources used by them. |
File:DOD 55.png |
With Advanced Billing module, you can also display your customers the current server resource usage and their cost. |
File:DOD 56.png |
Management of Existing Accounts
You can easily use DigitalOcean Droplets For WHMCS module with your existing DigitalOcean Droplets accounts. To do so, follow the instructions below: 1. Create and configure a DigitalOcean Droplets server and a server group. |
File:DOD 56.1.png |
Tips
1. Operations performed on the virtual servers are not executed immediately. Give your DigitalOcean Droplets servers some time for processing the request and execution of operation. |
2. To change password, OS on VM has to finish a boot sequence. Password is changed when ready status is detected by cron. |
3. You can also check if your server connection is configured correctly. Go to 'Setup' → 'Product/Services' → 'Servers' and press 'Test Connection' button next to your server. |
File:DOD 56 2.png |
Update Instructions
Essential guidance through the process of updating the module is offered here. Keep in mind there is a quick and easy option in our client area that will let you upgrade the license of your module to an open source version at any time - and at a lower price! |
How To Update
1. If you switch from Parallels Cloud Server to newer version of DigitalOcean Droplets, follow the below steps. Firstly, download the latest version from your client area. |
![]() |
2. In the downloaded file you will find two packages that support different PHP versions. As presented on the screen below, the first one is dedicated to PHP 7, while the second one is aimed at PHP 5.3.7 up to PHP 5.6. It does not apply to open source versions. Note: You can check current PHP version in your WHMCS. To do so proceed to 'Utilities' → 'System' → 'PHP Info'. |
File:DOD 2 1 1.png |
3. Extract the downloaded file and choose the one with the right PHP version. Upload and extract the PHP file into the main WHMCS directory. The content of PHP version files should look like this. |
File:DOD 2 2.png |
4. Then you need to update server settings in 'Products/Services' → 'Servers'. Find more Droplets_VPS_For_WHMCS#Configuration_of_Server here |
5. Finally, update your product details. To do so, move to 'Products/Services' → 'Products/Services'. Find details Droplets_VPS_For_WHMCS#Configuration_of_Product here. |
6. If you are updating from Parallels Cloud Server 1.0.5 or older, you have to make additional changes. Update configurable options of product using DigitalOcean Droplets module. |
Your module and products have been just successfully updated, good job! |
Common Problems
1. When you have problems with connection, check whether your SELinux or firewall does not block ports. |
2. It can happen that at your 'Module Settings' tab you can get loading gray screen. Do not worry, it can take a while to download available settings from your PVA server. |
3. When you see message shown on the screen below, it means that you have not installed IP Manager For WHMCS. This module is needed to manage your IP addresses from DigitalOcean Droplets addon, and can be downloaded from here. |
File:DOD 57.png |
4. It is not advised to use Parallels Cloud Server For WHMCS module with DigitalOcean Droplets For WHMCS at the same time. |
5. If you are getting an error like this one:
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'username.pcsNetworkClassConf' doesn't exist. when configuring product's module settings, make sure that the DigitalOcean Droplets addon has been enabled. |