Difference between revisions of "Plesk"

From WHMCS Documentation

(Setting Up a Plesk Hosting Package)
(Add-On Features)
 
(24 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 +
== About this Module ==
 +
 +
The Plesk module allows you to add and manage Plesk servers in WHMCS.
 +
 +
<div class="docs-alert-info">
 +
* This module is compatible with Plesk versions 11, 11.5, 12, 12.5, Onyx, and Obsidian.
 +
* You can also [[Plesk Single Sign-On|use single sign-on with Plesk]].
 +
</div>
 +
===Plesk Onyx===
 +
 +
Plesk Onyx is the next release of the Plesk Web Hosting Control Panel following Plesk 12.5.
 +
 +
First released as a preview towards the end of 2016, Plesk Onyx is the first release of Plesk following the introduction of their new product naming convention and dropping of version numbers.
 +
 +
However, fundamentally Plesk Onyx is still Plesk, and is compatible with WHMCS using the Plesk module.
 
{{Provisioning_Module
 
{{Provisioning_Module
 
| changepackage = Yes
 
| changepackage = Yes
Line 5: Line 20:
 
| clientarealink = Yes
 
| clientarealink = Yes
 
| port = 8443}}
 
| port = 8443}}
<div class="docs-alert-info">
 
<span class="title">Compatible Plesk Versions:</span> 11, 11.5, 12, 12.5, Onyx, Obsidian
 
</div>
 
 
== Setting Up a Plesk Server ==
 
The following steps guide you through the process of setting up a server in WHMCS for Plesk Hosting Accounts in Plesk 11-12.
 
#Go to '''Configuration (<i class="fa fa-wrench" aria-hidden="true"></i>) > System Settings > Servers''' or, prior to WHMCS 8.0, '''Setup > Products/Services > Servers'''.
 
#Click '''Add New Server'''.
 
#Select a module (''Plesk'').
 
#Enter the server's hostname or IP address, username, password, and API token.
 
#Set the type to '''Plesk'''.
 
#Click '''Test Connection''' to make sure the details are entered correctly and WHMCS can connect to Plesk.
 
#Click '''Save Changes'''.
 
#On the longer server configuration page that appears, configure the desired settings for your server.
 
  
You can find more information about this process at [https://help.whmcs.com/m/87388/l/1076210 Creating Your First Plesk Server].
+
== Adding a Plesk Server ==
  
== Setting Up a Plesk Hosting Package ==
+
To set up a Plesk server in WHMCS:
[[File:plesk12_3new.png|thumb|Creating a Hosting Plan]]
 
 
   
 
   
To set up a Plesk hosting package, use the basic instructions in [[Products_and_Services#Products|Products and Services]], making sure to select ''Plesk'' as your module. Then, refer to the steps below.
+
# Go to '''Configuration (<i class="fa fa-wrench" aria-hidden="true"></i>) > System Settings > [[Servers]]''' or, prior to WHMCS 8.0, '''Setup > Products/Services > Servers'''.
+
# Click '''Add New Server'''.
To configure a service plan:
+
# Select ''Plesk'' from the menu.  
# On your Plesk server, create a Service Plan in '''Hosting Services > Service Plans'''.
+
# Enter the hostname or IP address.
# Back in WHMCS, select the '''Service Plan Name''' from the menu that appears.
+
# Enter a username and password.
# From the '''Which IP addresses to use?''' menu, select how you wish Plesk to assign IP addresses when accounts using this product are created.
+
# Click '''Test Connection'''.
# For [[WordPress Hosting|WordPress hosting]], configure the desired '''Install WordPress''' settings. Then, if applicable, enter a '''Blog Title''', '''WordPress Path''',  and '''Admin Password''', or click '''Create Custom Field'''.
+
# Enter the desired additional server details.
# Optionally, choose an automatic setup option for new orders.
+
# Click '''Save Changes'''.
 +
# If this is the only Plesk server that is currently in WHMCS, click on the name and ensure that it results in an asterisk (*) next to it. This indicates that it is the default to use when any other non-specific configuration doesn't apply.
  
===Reseller Packages===
+
For more information, see [https://help.whmcs.com/m/87388/l/1076210 Creating Your First Plesk Server].
  
When creating a reseller package, use the settings above with these exceptions:
+
== Creating a Plesk Product ==
*On the first page while creating a product, set the '''Product Type''' setting to ''Reseller Account'' instead of ''Shared Hosting''.
 
*On your Plesk server, create the service plan in the '''Reseller Plans''' tab at '''Hosting Services > Service Plans'''.
 
*In WHMCS, under the '''Module Settings''' tab, select both a '''Service Plan Name''' and '''Reseller Plan Name'''.
 
  
====Notes====
+
[[File:plesk12_3new.png|thumb|Creating a Plesk Product]]
 +
 +
You can create a product that provisions accounts on your Plesk server at '''Configuration (<i class="fa fa-wrench" aria-hidden="true"></i>) > System Settings > [[Products_and_Services|Products/Services]]''' or, prior to WHMCS 8.0, '''Setup > Products/Services > Products/Services'''. 
 +
 +
=== Configurable Options ===
  
Creating a reseller account will not create a shared hosting space for the reseller's website. Once the account has been created, the reseller can log in to Plesk and set up their own hosting space.
 
 
===Additional Options===
 
 
The Plesk module supports multiple ways of adding value to your offerings via configurable options, addons, and dedicated IP addresses.
 
 
 
<div class="docs-alert-info">
 
<div class="docs-alert-info">
<span class="title">Addons and Configurable Options</span><br />
+
* If you set up configurable options, you will also use Plesk's Panel Addons. This Plesk feature is '''not''' part of WHMCS's product addon system.
If you set up configurable options, you will also use Plesk's Panel Addons. This Plesk feature is '''not''' part of WHMCS's product addon system.
+
* A friendly name can be assigned to configurable options in order to display a different name to clients. This is sometimes preferable to displaying the system value as it appears inside Plesk. For more information, see [[Addons_and_Configurable_Options#Friendly_Display_Names|Friendly Display Names]].
 
</div>
 
</div>
 
   
 
   
====Configurable Options for Plesk Panel Addons====
+
[[File:Plesk_addons.png |thumb|Plesk Panel Addons]]
 +
[[File:Plesk_config_opt_setup_8-2.png |thumb|WHMCS Plesk Configurable Options]]
 +
[[File:WHMCS-plesk-extra-bandwidth-8-2.png |thumb|WHMCS Plesk Bandwidth Configurable Options]]
 
   
 
   
[[File:Plesk addons.png |thumb|Plesk Panel Addons]]
+
To create configurable options that attach Plesk's Panel Addons to your Plesk products:
[[File:Plesk config opt setup 8-2.png |thumb|WHMCS Plesk Configurable Options]]
 
[[File:WHMCS-plesk-extra-bandwidth-8-2.png |thumb|WHMCS Plesk Bandwidth Configurable Options]]
 
 
   
 
   
To create configurable options that can attach Plesk's Panel Addons to your Plesk products:
+
# Go to '''Configuration (<i class="fa fa-wrench" aria-hidden="true"></i>) > System Settings > [[Configurable Options]]''' or, prior to WHMCS 8.0, '''Setup > Products/Services > Configurable Options'''.
 +
# Perform one of the following actions:
 +
#* Click the '''Edit''' icon for an existing group.
 +
#* Click '''Create a New Group''', configure the group name, description, and assigned products, and then click '''Save Changes'''.
 +
# Click '''Add New Configurable Option'''.
 +
# Enter an option name using the <tt>Plesk Panel-Addon-Name</tt> name format, replacing <tt>Panel-Addon-Name</tt> with the exact name that displays in Plesk for that Plesk Panel Addon. For example:
 +
#* In the '''Plesk Panel Addons''' image above, one of the configured Panel Addons is '''Extra Bandwidth''', with resources of <tt>5GB</tt> or <tt>10GB</tt>.
 +
#* In WHMCS in the '''WHMCS Plesk Configurable Options''' image above, this is '''Plesk Extra Bandwidth'''.
 +
#* In the '''WHMCS Plesk Bandwidth Configurable Options''' image above, '''10GB Extra Bandwidth''' and '''5GB Extra Bandwidth''' are set to ensure that the bandwidth options in Plesk and WHMCS match.<div class="docs-alert-info">We recommend that you set the first option to '''None''' or a similar value. When you do this, ensure that the '''Panel Addon''' uses a value of <tt>0</tt>. This gives the user the ability to choose not to have any additional values per option.</div>
 +
# Select ''Yes/No'' or ''Dropdown'' as the '''Option Type''' setting.
 +
# Enter the desired options and display order.
 +
# Click '''Save Changes'''.
 +
# Create each desired additional option.
 +
# Click '''Close Window'''.
 +
# Select the desired products in the '''Assigned Products''' list.
 +
# Click '''Save Changes'''.
 +
# Go to '''Configuration (<i class="fa fa-wrench" aria-hidden="true"></i>) > System Settings > [[Products_and_Services|Products/Services]]''' or, prior to WHMCS 8.0, '''Setup > Products/Services > Products/Services'''.
 +
# Edit the desired product or service.
 +
# In the '''Configurable Options''' tab, select the desired options.
 +
# Click '''Save Changes'''.
 +
 
 +
==== Dedicated IP Address ====
 
   
 
   
# Navigate to '''Configuration (<i class="fa fa-wrench" aria-hidden="true"></i>) > System Settings > Configurable Options'''.
+
To create configurable options that provision a dedicated IP address, use either or both of these exact names when you create configurable options:
# Create a configurable option. Use the <tt>Plesk Panel-Addon-Name</tt> format, replacing <tt>Panel-Addon-Name</tt> with the exact name that displays in Plesk for that Plesk Panel Addon. For example:
+
 
#* In the ''Plesk Panel Addons'' image above, one of the configured Panel Addons is '''Extra Bandwidth''', with resources of <tt>5GB</tt> or <tt>10GB</tt>.
+
* <tt>Dedicated IPv4</tt>
#* In WHMCS in the ''WHMCS Plesk Configurable Options'' image above, this is <tt>Plesk Extra Bandwidth</tt>.
+
* <tt>Dedicated IPv6</tt>
#* In the ''WHMCS Plesk Bandwidth Configurable Options'' image above, '''10GB Extra Bandwidth''' and '''5GB Extra Bandwidth''' are set to ensure that the bandwidth options in Plesk and WHMCS match.
+
 
#* We recommend that you set the first option to <tt>None</tt> or a similar value. When you do this, ensure that the Panel Addon uses a value of <tt>0</tt>. This gives the user the ability to choose not to have any additional values per option.
+
Select ''Yes/No'' from the '''Option Type''' menu for these options.
# Select '''Yes/No''' or '''Dropdown''' as the '''Option Type''' for these options.
+
 
# Ensure that the products for these options are selected in '''Assigned Products'''.
+
====Overriding Overage Billing Soft Limits with Configurable Options====
 
   
 
   
For more information, see [[Addons_and_Configurable_Options]].
+
When using configurable options to override the soft limits for overage billing on a Plesk product, you must create a <tt>config.ini</tt> file in the <tt>/modules/servers</tt> directory with the following contents:
 
   
 
   
To add configurable options to a product:
+
;WHMCS Plesk Provisioning Module Config File
# Navigate to '''Configuration (<i class="fa fa-wrench" aria-hidden="true"></i>) > System Settings > Products/Services'''.
+
skip_addon_prefix = true
# Edit the desired product or service.
+
 
# Choose the '''Configurable Options''' tab.
+
After you create this file, ensure that you have configured <tt>Disk Space</tt> and <tt>Bandwidth</tt> configurable options using our [[Disk_Space_and_Bandwidth_Overage_Billing#Custom_Fields_and_Configurable_Options|Custom Fields and Configurable Options]] documentation. This will ensure that the overrides function correctly.
# Select the desired options.
+
 
 +
== Add-On Features ==
 +
 
 +
In WHMCS 8.2 and later, in addition to WHMCS's existing product addon functionality (now an '''Independent Product'''), you can create an '''Add-On Feature'''. These addons let you sell module-specific features that are available through cPanel & WHM and Plesk, like WP Toolkit or, in WHMCS 8.10 and later, Sitejet Builder.
 +
 
 +
For more information and steps to create an addon, see [[Product Addons]].
 +
 
 +
=== Reseller Packages ===
 +
 
 +
When creating a reseller package, create the service plan on your Plesk server in the '''Reseller Plans''' tab at '''Hosting Services > Service Plans'''.
 +
 
 +
When you configure the product in WHMCS, use the following settings:
 +
 
 +
* In the '''Details''' tab, set the '''Product Type''' setting to ''Reseller Account''.
 +
* In the '''Module Settings''' tab, set the '''Service Plan Name''' ''and'' '''Reseller Plan Name''' settings.
 +
 
 +
Creating a reseller account will '''not''' create a shared hosting space for the reseller's website. After account creation, the reseller can log in to Plesk and set up their own hosting space.
  
====Dedicated IP Address====
+
===Metric Billing===
 
   
 
   
To create configurable options that provision a dedicated IP address:
+
<div class="docs-alert-info"><i class="fa fa-info-circle"></i>We added metric billing for Plesk in WHMCS 8.5.</div>
 
   
 
   
# Navigate to '''Configuration (<i class="fa fa-wrench" aria-hidden="true"></i>) > System Settings > Products/Services''' or, prior to WHMCS 8.0, '''Setup > Products/Services'''.
+
You can bill clients for their use of individual items like databases or bandwidth. You can choose whether to include a certain amount in the base price and only charge for exceeding a certain limit, offer tiered pricing, or charge for every unit of an item.
# Choose the '''Configurable Options''' tab.
 
# Create configurable options named '''Dedicated IPv4''' or '''Dedicated IPv6''', depending on the type of IP addresses that you want to offer.
 
# Select '''Yes/No''' as the '''Option Name'''.
 
# Ensure that the products for these options are selected in '''Assigned Products'''.
 
 
   
 
   
For more information, see [[Addons_and_Configurable_Options]].
+
You can configure metric billing in the '''Metric Billing''' tab.
 
   
 
   
<div class="docs-alert-info">
+
When a client orders this product, WHMCS will track the account's use of the items you configured. On the service's '''Next Due Date''', the system will record that period's usage and add the cost to the service's renewal invoice.
<span class="title">Friendly Names</span><br />
 
A friendly name can be assigned to configurable options in order to display a different name to clients. This is sometimes preferable to displaying the system value as it appears inside Plesk. For more information, see [[Addons_and_Configurable_Options#Friendly_Display_Names|Friendly Display Names]].
 
</div>
 
 
   
 
   
====Add-On Features====
+
For more information, see [[Usage Billing]].
 +
 
 +
=== Log in to Plesk ===
 +
 
 +
When you click '''Log in to Plesk''' in the Client Area ''or'' Admin Area, WHMCS bases its actions on the server hostname if it is available. If it is not, WHMCS uses the IP address.
 +
 
 +
The use of <tt>http</tt> and <tt>https</tt> login links depends on the '''Secure''' setting in your server's configuration.
 +
 
 +
=== WHMCS Connect ===
 +
 
 +
WHMCS Connect allows you and your administrators to quickly and easily access the control panels of all the servers configured in your WHMCS installation that support Single Sign-On, enabling you and your staff to administer and make changes without ever needing to re-authenticate.
 
   
 
   
In WHMCS 8.2 and later, in addition to WHMCS's existing product addon functionality (now an '''Independent Product'''), you can create an '''Add-On Feature'''. These addons let you sell module-specific features like the WordPress Toolkit offerings available through both cPanel & WHM and Plesk.
+
For more information, see [[WHMCS_Connect]].
+
 
For more information and steps to create an addon, see [[Product Addons]].
+
== Troubleshooting ==
 +
 
 +
=== The client account is getting setup but the domain is not ===
 +
 
 +
This is usually due to the permissions of the domain template exceeding the server resources or containing something unsupported (for example, ColdFusion). Always test whether your domain template works directly in Plesk after setting it up.
 +
 
 +
=== I get a blank command error from WHMCS when it tries to setup an account ===
  
==Common Problems==
 
===The client account is getting setup but the domain is not===
 
This is usually due to the permissions of the domain template exceeding the server resources or containing something such as ColdFusion support when the server doesn't support it. You should always test your domain template works directly in Plesk after setting it up if it is a new setup.
 
===I get a blank command error from WHMCS when it tries to setup an account===
 
 
This can occur if your firewall is blocking connections on port 8443. You need to open it on both the server WHMCS is on and the server WHMCS is connecting to for inbound and outbound connections.
 
This can occur if your firewall is blocking connections on port 8443. You need to open it on both the server WHMCS is on and the server WHMCS is connecting to for inbound and outbound connections.
===With accounts created on my Plesk server from WHMCS the www. subdomain doesn't work===
 
This happens due to the default DNS settings on a Plesk server and the requirement to tick a box when creating an account to enable it. To avoid that, simply follow the steps below.
 
#Login to Plesk
 
#Click "Server"
 
#Click "DNS Settings"
 
#Click "Add New Record"
 
#Choose "CNAME" under record type
 
#Enter "www" in "Enter Domain Name"
 
#Enter "<domain>" in "Enter Canonical Name"
 
#Hit OK to complete the changes
 
===Page not Found/Timeout/502 Bad Gateway error creating accounts===
 
By default Plesk performs a forced restart of apache when an account is created or suspended which causes WHMCS to lose connection to the server, and if your WHMCS is on the same server, you will also lose connection to WHMCS at the same time.
 
In order to resolve this please refer to the following knowledgebase article for instructions on configuring Plesk to perform a graceful restart instead: https://support.plesk.com/hc/en-us/articles/213907285
 
  
===503 Service Temporarily Unavailable error creating accounts===
+
=== With accounts created on my Plesk server from WHMCS the www. subdomain doesn't work ===
By default Plesk performs a forced restart of apache when an account is created or suspended which causes WHMCS to lose connection to the server, and if your WHMCS is on the same server, you will also lose connection to WHMCS at the same time.
+
 
In order to resolve this please refer to the following knowledgebase article for instructions on configuring Plesk to run PHP as an FPM application served by nginx instead: https://support.plesk.com/hc/en-us/articles/115003664213-Unable-to-create-domain-through-WHMCS-503-Service-Temporarily-Unavailable
+
This happens due to the default DNS settings on a Plesk server and the requirement to check a box when creating an account to enable it.
 +
 
 +
To avoid that, simply follow the steps below.
 +
# Log in to Plesk.
 +
# Click '''Server'''.
 +
# Click '''DNS Settings'''.
 +
# Click '''Add New Record'''.
 +
# Choose '''CNAME''' under the record type.
 +
# Enter <tt>www</tt> in '''Enter Domain Name'''.
 +
# Enter <tt><domain></tt> in '''Enter Canonical Name'''.
 +
# Click '''OK''' to complete the changes.
 +
 
 +
=== Page not Found/Timeout/502 Bad Gateway error creating accounts ===
 +
 
 +
By default, Plesk performs a forced restart of Apache when an account is created or suspended. This causes WHMCS to lose connection to the server, and, if WHMCS is on the same server, you will also lose connection to WHMCS.
 +
 
 +
To resolve this, see [https://support.plesk.com/hc/en-us/articles/213907285 Plesk's support article].
 +
 
 +
=== 503 Service Temporarily Unavailable error creating accounts ===
 +
 
 +
By default, Plesk performs a forced restart of Apache when an account is created or suspended. This causes WHMCS to lose connection to the server, and, if WHMCS is on the same server, you will also lose connection to WHMCS.
 +
 
 +
To resolve this, see [https://support.plesk.com/hc/en-us/articles/115003664213-Unable-to-create-domain-through-WHMCS-503-Service-Temporarily-Unavailable Plesk's support article].
  
 
===Unable to create account in Panel. The field 'username' is required.===
 
===Unable to create account in Panel. The field 'username' is required.===
 +
 
This means the username under the client's '''Products/Services''' tab is empty.
 
This means the username under the client's '''Products/Services''' tab is empty.
  
You should enter a username, save changes and try module creation again. Also ensure '''Configuration (<i class="fa fa-wrench" aria-hidden="true"></i>) > System Settings > Products/Services > Edit > Require Domains''' or, prior to WHMCS 8.0, '''Setup > Products/Services > Products/Services > Edit > Require Domains''' is checked to avoid this in future.
+
Enter a username, save changes, and try module creation again. Then, ensure that '''Require Domains''' is enabled for the product at '''Configuration (<i class="fa fa-wrench" aria-hidden="true"></i>) > System Settings > [[Products and Services|Products/Services]]''' or, prior to WHMCS 8.0, '''Setup > Products/Services'''.
  
 
===0 - Unable to find appropriate manager for this version of Panel. Plesk should be at least 8.0 version===
 
===0 - Unable to find appropriate manager for this version of Panel. Plesk should be at least 8.0 version===
This is a generic error message returned by the Plesk module; for example it could be indicative of a connection error or invalid credentials  To identify the underlying error that is occurring, use '''Configuration (<i class="fa fa-wrench" aria-hidden="true"></i>) > System Logs''' or, prior to WHMCS 8.0, '''Utilities > Logs > Module Log'''. Please enable it, reproduce the error, disable it again and the ''Response'' column will show the underlying error.
 
  
More detailed instructions using the Module Log are published at [[Troubleshooting_Module_Problems]].
+
This is a generic error message that the Plesk module returns. For example, it could indicate a connection error or invalid credentials.
 +
 
 +
To identify the underlying error that is occurring, check the '''Module Log''' at '''Configuration (<i class="fa fa-wrench" aria-hidden="true"></i>) > [[System Logs]]''' or, prior to WHMCS 8.0, '''Utilities > Logs > Module Log'''. Enable it, reproduce the error, disable it again, and the ''''Response''' column will show the underlying error.
 +
 
 +
For more information, see [[Troubleshooting_Module_Problems]].
  
 
===1006 - Permission denied===
 
===1006 - Permission denied===
This indicates your Plesk login doesn't have the necessary permissions to use the API. You need the admin of the server to grant your Plesk reseller account permission to use the API - specifically this permission "Ability to use remote API" and that should resolve it
+
 
 +
This indicates that your Plesk login doesn't have the necessary permissions to use the API. You need the server administrator to grant your Plesk reseller account the '''Ability to use remote API''' permission.
  
 
===1013 - Template does not exist===
 
===1013 - Template does not exist===
This error message is coming direct from the Plesk API. When configuring the product, you have to enter the client and domain template names. These are currently incorrect or missing so you will need to correct them in Setup > Products/Services on the Modules Settings tab when editing your product
 
  
===1013 - Error message: Customer with email 'johndoe@example.com' is not found in panel. Please contact your service provider===
+
This error message is coming directly from the Plesk API and indicates that the client and domain template names are incorrect or missing. You can correct these in the product's '''Module Settings''' tab.
 +
 
 +
===1013 - Error message: Customer with email 'johndoe@example.com' is not found in panel===
 +
 
 
There are two potential causes of this error message:
 
There are two potential causes of this error message:
  
1. The product type is set incorrectly in WHMCS. Ie. A reseller plan is configured as a shared hosting product in WHMCS or vice versa. To resolve this:
+
==== Incorrect product type ====
 +
 
 +
The product type is set incorrectly in WHMCS (for example, a reseller plan is configured as a shared hosting product in WHMCS).  
 +
 
 +
To resolve this:
 +
 
 +
# Log in to WHMCS Admin Area.
 +
# Navigate to '''Configuration (<i class="fa fa-wrench" aria-hidden="true"></i>) > System Settings > [[Products and Services|Products/Services]]''' or, prior to WHMCS 8.0, '''Setup > Products/Services > Products/Services'''.
 +
# Set '''Product Type''' to ''Shared Hosting'' or ''Reseller Hosting'' to match the Plesk plan type.
 +
# Click '''Save Changes'''.
 +
 
 +
==== Missing data from a table inside Plesk ====
  
* Login to WHMCS Admin Area
+
If the error persists after following the ''Incorrect product type'' steps above, see [https://support.plesk.com/hc/en-us/articles/213932225-Error-while-accessing-Plesk-from-WHMCS-via-API-Customer-with-external-id-whmcs-plesk-XX-is-not-found-in-panel this article].
* Navigate to '''Configuration (<i class="fa fa-wrench" aria-hidden="true"></i>) > System Settings > Products/Services''' or, prior to WHMCS 8.0, '''Setup > Products/Services > Products/Services'''.
 
* Review the ''Product Type'' setting.
 
* Adjust to ''Shared Hosting'' or ''Reseller Hosting'' to match the Plesk plan type.
 
* Click ''Save Changes''.
 
  
2. Missing data from a table inside Plesk.
+
===1013 - Error message: Customer with external id 'xxxxxxxx' is not found in panel===
  
If the error persists after following step 1 above, then refer to this article to correct missing data in Plesk: https://support.plesk.com/hc/en-us/articles/213932225-Error-while-accessing-Plesk-from-WHMCS-via-API-Customer-with-external-id-whmcs-plesk-XX-is-not-found-in-panel
+
Refer to the solution for [[#1013 - Error message: Customer with email 'johndoe@example.com' is not found in panel|1013 - Error message: Customer with email 'johndoe@example.com' is not found in panel]] above.
  
 
===1014 - Parser error: Request is invalid===
 
===1014 - Parser error: Request is invalid===
This error message indicates there is a field value missing - this is most commonly caused by having no assigned IPs in the client or domain templates IP pool.
+
 
 +
This error message indicates there is a field value missing. This is most commonly caused by having no assigned IP addresses in the client or domain template's IP pool.
 +
 
 
===1014 - Parser error: Cannot parse the XML from the source specified===
 
===1014 - Parser error: Cannot parse the XML from the source specified===
The Plesk API only supports the characters a-z 0-9. If the client's profile contains other characters, accents etc, it will cause account creation to fail. You should edit the client's profile to remove these characters.
+
 
 +
The Plesk API only supports the characters a-z and 0-9. If the client's profile contains accents or other characters, it will cause account creation to fail. Edit the client's profile to remove these characters.
 +
 
 
===1018 - Unable to create hosting. IP address does not exist in client's pool===
 
===1018 - Unable to create hosting. IP address does not exist in client's pool===
This error generally indicates that there is an issue with the IP pool configuration in Plesk. For example there not be any available IP addresses or having the first IP set as dedicated when it should be shared.
+
 
 +
This error indicates that there is an issue with the IP address pool configuration in Plesk. For example, there may not be any available IP addresses or the first IP address may be set as dedicated instead of shared.
  
 
===1023 - Unable to accept the template: the following limitations are exceeded===
 
===1023 - Unable to accept the template: the following limitations are exceeded===
  
This issue occurs when the resources provided by the serivce plan add-on were already used by the subscription.  
+
This issue occurs when the resources provided by the serivce plan addon were already used by the subscription.  
  
The resolve it, inside Plesk, within the subscription for that domain name, remove the referenced addon-on. Once removed, inside WHMCS on the service itself within the Products/Services tab of the admin user interface, use the "Upgrade/Downgrade" option selecting the addon-on and creating an upgrade order for it to be applied.  
+
To resolve this:
 +
 
 +
# In the subscription for that domain name, remove the referenced addon in Plesk.  
 +
# In WHMCS, go to the product or service's '''Products/Services''' tab.
 +
# Use the "Upgrade/Downgrade" option to create an upgrade order.  
  
 
===2306 - Domain adding was failed. Error: xxxxx template failed: Unable to apply limits===
 
===2306 - Domain adding was failed. Error: xxxxx template failed: Unable to apply limits===
This error message comes direct from the Plesk API. It means that the template you are attempting to use exceeds your limits or has a feature your server doesn't support. You should try creating an account with the template inside Plesk itself as then you get more details about the problem.
+
 
 +
This error message comes direct from the Plesk API. It indicates that the template you are attempting to use exceeds your limits or has a feature your server doesn't support. Create an account with the template inside Plesk to retrieve further details.
  
 
===Plesk login requires user authentication===
 
===Plesk login requires user authentication===
This issue can happen when the user has a dynamic IP addresses and/or an unstable internet connection. Selecting the '''Allow IP changes during one session''' checkbox in Plesk [https://docs.plesk.com/en-US/obsidian/administrator-guide/server-administration/session-preferences.60305/ will resolve this].
+
 
 +
This issue can happen when the user has a dynamic IP addresses or an unstable internet connection. Selecting '''Allow IP changes during one session''' in Plesk [https://docs.plesk.com/en-US/obsidian/administrator-guide/server-administration/session-preferences.60305/ will resolve this].
 +
 
 
{{modules}}
 
{{modules}}

Latest revision as of 14:43, 18 March 2024

Contents

About this Module

The Plesk module allows you to add and manage Plesk servers in WHMCS.

Plesk Onyx

Plesk Onyx is the next release of the Plesk Web Hosting Control Panel following Plesk 12.5.

First released as a preview towards the end of 2016, Plesk Onyx is the first release of Plesk following the introduction of their new product naming convention and dropping of version numbers.

However, fundamentally Plesk Onyx is still Plesk, and is compatible with WHMCS using the Plesk module.

Supported Features

Create Suspend Unsuspend Terminate
Yes Yes Yes Yes
Change Package Change Password Usage Updates Client Area Link
Yes Yes Yes Yes

The following ports should be open for outbound connections from your WHMCS server: 8443

Adding a Plesk Server

To set up a Plesk server in WHMCS:

  1. Go to Configuration () > System Settings > Servers or, prior to WHMCS 8.0, Setup > Products/Services > Servers.
  2. Click Add New Server.
  3. Select Plesk from the menu.
  4. Enter the hostname or IP address.
  5. Enter a username and password.
  6. Click Test Connection.
  7. Enter the desired additional server details.
  8. Click Save Changes.
  9. If this is the only Plesk server that is currently in WHMCS, click on the name and ensure that it results in an asterisk (*) next to it. This indicates that it is the default to use when any other non-specific configuration doesn't apply.

For more information, see Creating Your First Plesk Server.

Creating a Plesk Product

Creating a Plesk Product

You can create a product that provisions accounts on your Plesk server at Configuration () > System Settings > Products/Services or, prior to WHMCS 8.0, Setup > Products/Services > Products/Services.

Configurable Options

  • If you set up configurable options, you will also use Plesk's Panel Addons. This Plesk feature is not part of WHMCS's product addon system.
  • A friendly name can be assigned to configurable options in order to display a different name to clients. This is sometimes preferable to displaying the system value as it appears inside Plesk. For more information, see Friendly Display Names.
Plesk Panel Addons
WHMCS Plesk Configurable Options
WHMCS Plesk Bandwidth Configurable Options

To create configurable options that attach Plesk's Panel Addons to your Plesk products:

  1. Go to Configuration () > System Settings > Configurable Options or, prior to WHMCS 8.0, Setup > Products/Services > Configurable Options.
  2. Perform one of the following actions:
    • Click the Edit icon for an existing group.
    • Click Create a New Group, configure the group name, description, and assigned products, and then click Save Changes.
  3. Click Add New Configurable Option.
  4. Enter an option name using the Plesk Panel-Addon-Name name format, replacing Panel-Addon-Name with the exact name that displays in Plesk for that Plesk Panel Addon. For example:
    • In the Plesk Panel Addons image above, one of the configured Panel Addons is Extra Bandwidth, with resources of 5GB or 10GB.
    • In WHMCS in the WHMCS Plesk Configurable Options image above, this is Plesk Extra Bandwidth.
    • In the WHMCS Plesk Bandwidth Configurable Options image above, 10GB Extra Bandwidth and 5GB Extra Bandwidth are set to ensure that the bandwidth options in Plesk and WHMCS match.
      We recommend that you set the first option to None or a similar value. When you do this, ensure that the Panel Addon uses a value of 0. This gives the user the ability to choose not to have any additional values per option.
  5. Select Yes/No or Dropdown as the Option Type setting.
  6. Enter the desired options and display order.
  7. Click Save Changes.
  8. Create each desired additional option.
  9. Click Close Window.
  10. Select the desired products in the Assigned Products list.
  11. Click Save Changes.
  12. Go to Configuration () > System Settings > Products/Services or, prior to WHMCS 8.0, Setup > Products/Services > Products/Services.
  13. Edit the desired product or service.
  14. In the Configurable Options tab, select the desired options.
  15. Click Save Changes.

Dedicated IP Address

To create configurable options that provision a dedicated IP address, use either or both of these exact names when you create configurable options:

  • Dedicated IPv4
  • Dedicated IPv6

Select Yes/No from the Option Type menu for these options.

Overriding Overage Billing Soft Limits with Configurable Options

When using configurable options to override the soft limits for overage billing on a Plesk product, you must create a config.ini file in the /modules/servers directory with the following contents:

;WHMCS Plesk Provisioning Module Config File
skip_addon_prefix = true

After you create this file, ensure that you have configured Disk Space and Bandwidth configurable options using our Custom Fields and Configurable Options documentation. This will ensure that the overrides function correctly.

Add-On Features

In WHMCS 8.2 and later, in addition to WHMCS's existing product addon functionality (now an Independent Product), you can create an Add-On Feature. These addons let you sell module-specific features that are available through cPanel & WHM and Plesk, like WP Toolkit or, in WHMCS 8.10 and later, Sitejet Builder.

For more information and steps to create an addon, see Product Addons.

Reseller Packages

When creating a reseller package, create the service plan on your Plesk server in the Reseller Plans tab at Hosting Services > Service Plans.

When you configure the product in WHMCS, use the following settings:

  • In the Details tab, set the Product Type setting to Reseller Account.
  • In the Module Settings tab, set the Service Plan Name and Reseller Plan Name settings.

Creating a reseller account will not create a shared hosting space for the reseller's website. After account creation, the reseller can log in to Plesk and set up their own hosting space.

Metric Billing

We added metric billing for Plesk in WHMCS 8.5.

You can bill clients for their use of individual items like databases or bandwidth. You can choose whether to include a certain amount in the base price and only charge for exceeding a certain limit, offer tiered pricing, or charge for every unit of an item.

You can configure metric billing in the Metric Billing tab.

When a client orders this product, WHMCS will track the account's use of the items you configured. On the service's Next Due Date, the system will record that period's usage and add the cost to the service's renewal invoice.

For more information, see Usage Billing.

Log in to Plesk

When you click Log in to Plesk in the Client Area or Admin Area, WHMCS bases its actions on the server hostname if it is available. If it is not, WHMCS uses the IP address.

The use of http and https login links depends on the Secure setting in your server's configuration.

WHMCS Connect

WHMCS Connect allows you and your administrators to quickly and easily access the control panels of all the servers configured in your WHMCS installation that support Single Sign-On, enabling you and your staff to administer and make changes without ever needing to re-authenticate.

For more information, see WHMCS_Connect.

Troubleshooting

The client account is getting setup but the domain is not

This is usually due to the permissions of the domain template exceeding the server resources or containing something unsupported (for example, ColdFusion). Always test whether your domain template works directly in Plesk after setting it up.

I get a blank command error from WHMCS when it tries to setup an account

This can occur if your firewall is blocking connections on port 8443. You need to open it on both the server WHMCS is on and the server WHMCS is connecting to for inbound and outbound connections.

With accounts created on my Plesk server from WHMCS the www. subdomain doesn't work

This happens due to the default DNS settings on a Plesk server and the requirement to check a box when creating an account to enable it.

To avoid that, simply follow the steps below.

  1. Log in to Plesk.
  2. Click Server.
  3. Click DNS Settings.
  4. Click Add New Record.
  5. Choose CNAME under the record type.
  6. Enter www in Enter Domain Name.
  7. Enter <domain> in Enter Canonical Name.
  8. Click OK to complete the changes.

Page not Found/Timeout/502 Bad Gateway error creating accounts

By default, Plesk performs a forced restart of Apache when an account is created or suspended. This causes WHMCS to lose connection to the server, and, if WHMCS is on the same server, you will also lose connection to WHMCS.

To resolve this, see Plesk's support article.

503 Service Temporarily Unavailable error creating accounts

By default, Plesk performs a forced restart of Apache when an account is created or suspended. This causes WHMCS to lose connection to the server, and, if WHMCS is on the same server, you will also lose connection to WHMCS.

To resolve this, see Plesk's support article.

Unable to create account in Panel. The field 'username' is required.

This means the username under the client's Products/Services tab is empty.

Enter a username, save changes, and try module creation again. Then, ensure that Require Domains is enabled for the product at Configuration () > System Settings > Products/Services or, prior to WHMCS 8.0, Setup > Products/Services.

0 - Unable to find appropriate manager for this version of Panel. Plesk should be at least 8.0 version

This is a generic error message that the Plesk module returns. For example, it could indicate a connection error or invalid credentials.

To identify the underlying error that is occurring, check the Module Log at Configuration () > System Logs or, prior to WHMCS 8.0, Utilities > Logs > Module Log. Enable it, reproduce the error, disable it again, and the 'Response column will show the underlying error.

For more information, see Troubleshooting_Module_Problems.

1006 - Permission denied

This indicates that your Plesk login doesn't have the necessary permissions to use the API. You need the server administrator to grant your Plesk reseller account the Ability to use remote API permission.

1013 - Template does not exist

This error message is coming directly from the Plesk API and indicates that the client and domain template names are incorrect or missing. You can correct these in the product's Module Settings tab.

1013 - Error message: Customer with email 'johndoe@example.com' is not found in panel

There are two potential causes of this error message:

Incorrect product type

The product type is set incorrectly in WHMCS (for example, a reseller plan is configured as a shared hosting product in WHMCS).

To resolve this:

  1. Log in to WHMCS Admin Area.
  2. Navigate to Configuration () > System Settings > Products/Services or, prior to WHMCS 8.0, Setup > Products/Services > Products/Services.
  3. Set Product Type to Shared Hosting or Reseller Hosting to match the Plesk plan type.
  4. Click Save Changes.

Missing data from a table inside Plesk

If the error persists after following the Incorrect product type steps above, see this article.

1013 - Error message: Customer with external id 'xxxxxxxx' is not found in panel

Refer to the solution for 1013 - Error message: Customer with email 'johndoe@example.com' is not found in panel above.

1014 - Parser error: Request is invalid

This error message indicates there is a field value missing. This is most commonly caused by having no assigned IP addresses in the client or domain template's IP pool.

1014 - Parser error: Cannot parse the XML from the source specified

The Plesk API only supports the characters a-z and 0-9. If the client's profile contains accents or other characters, it will cause account creation to fail. Edit the client's profile to remove these characters.

1018 - Unable to create hosting. IP address does not exist in client's pool

This error indicates that there is an issue with the IP address pool configuration in Plesk. For example, there may not be any available IP addresses or the first IP address may be set as dedicated instead of shared.

1023 - Unable to accept the template: the following limitations are exceeded

This issue occurs when the resources provided by the serivce plan addon were already used by the subscription.

To resolve this:

  1. In the subscription for that domain name, remove the referenced addon in Plesk.
  2. In WHMCS, go to the product or service's Products/Services tab.
  3. Use the "Upgrade/Downgrade" option to create an upgrade order.

2306 - Domain adding was failed. Error: xxxxx template failed: Unable to apply limits

This error message comes direct from the Plesk API. It indicates that the template you are attempting to use exceeds your limits or has a feature your server doesn't support. Create an account with the template inside Plesk to retrieve further details.

Plesk login requires user authentication

This issue can happen when the user has a dynamic IP addresses or an unstable internet connection. Selecting Allow IP changes during one session in Plesk will resolve this.

Server Modules
cPanel/WHM - DirectAdmin - Plesk - Helm 3 - Helm 4 - Ensim - InterWorx - WebsitePanel - Cloudmin
Lxadmin - Virtualmin Pro - XPanel - HyperVM - SolusVM - Cloudmin - WHMSonic - VPS.Net
CentovaCast - SCPanel - MediaCP - GameCP - TCAdmin - Reseller Central - Auto Release - Heart Internet

Registrar Modules
Enom - ResellerClub - Nominet - OpenSRS - ResellOne - OnlineNIC - PlanetDomain - Affordable Domains
TPP Wholesale - TPPInternet - Stargate - Namecheap - NetEarthOne - Bizcn - InternetBS - GMO Internet
12Register - Registercom - DotDNS - WebNIC - Dot.TK - HexoNet - Realtime Register - Registereu
RRPProxy - ResellerCamp - TransIP - Heart Internet - IPMirror - NetRegistry - OVH - VentraIP Wholesale
Email - 101Domain

Fraud Modules
MaxMind - VariLogiX FraudCall - Telesign

Gateway Modules
2CheckOut - AsiaPay - Auth.net Echeck - Authorize.net - Authorize.net CIM - Bank Transfer - BidPay
BluePay - BluePay Echeck - BluePay Remote - Boleto - CashU - CC Avenue - ChronoPay - Direct Debit
EMatters - E-Path - eProcessingNetwork - eWAY Tokens - F2B - Finansbank - GarantiBank - Gate2Shop
Inpay - InternetSecure - IP.Pay - Kuveytturk - Modulo Moip - Mail In Payment - Merchant Partners
Merchant Warrior - IDEALMollie - Moneris - Moneris Vault - Skrill 1-Tap - NaviGate - NETbilling
Netregistry Pay - NoChex - Offline Credit Card - Optimal Payments - PagSeguro - Payflow Pro - Pay Junction
Paymate AU and NZ - Payment Express - PayPal - PayPal Card Payments - PayPal Express Checkout
PayPal Payments - PayPal Payments Pro - PayPoint.net (SecPay) - Payson - Planet Authorize - ProtX VSP Form
PSIGate - Quantum Gateway - Quantum Vault - SagePay - SagePay Tokens v2 - SecurePay
SecurePay AU - Secure Trading - TrustCommerce - USA ePay - WorldPay - WorldPay Invisible