WP Squared

WP Squared, a WebPros product, hosts and manages WordPress®-specific accounts while offering a specially-tailored version of WHM that meets all of the needs of WordPress hosts. It is a distinct product from WP Toolkit and other WordPress-related WebPros offerings.

Our WP Squared module allows you to provision and manage accounts on WP Squared servers from within WHMCS.

To use the WP Squared module, the server must be a WP Squared server that uses a valid WP Squared license. WP Squared servers must run CloudLinux™ 8.

Supported Features

CreateSuspendUnsuspendTerminate
Change PackageChange PasswordUsage UpdatesClient Area Link

Make sure to open the following ports for outbound connections from your WHMCS server:

  • 2086
  • 2087

Adding a WP Squared Server

To set up a WP Squared server in WHMCS:

  1. Go to Configuration () > System Settings > Servers.
  2. Click Add New Server.
  3. Select WP Squared from the menu.
  4. Enter the hostname or IP address.
  5. Enter the username and password or API token.
  • For the username and password, use your WHM account credentials.
  • You can generate an API token in WHM at Development » Manage API Tokens.
  1. Click Test Connection.
  2. Enter the desired additional server details.
  3. Examine the displayed default port. If your server uses a different port, check Override with Custom Port and enter the correct port.
    For more information, see Server Port Overrides.
  4. Click Save Changes.
  5. If this is the only WP Squared 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.

If Two-Factor Authentication is enabled on your cPanel & WHM server, you must disable it for API requests. See below.

Creating a WP Squared Product

You can create a product that provisions accounts on your WP Squared server at Configuration () > System Settings > Products/Services. You can then create a product using an existing WHM package or by defining custom options.

WP Squared servers do not support reseller hosting.

Use an Existing WHM Package

To create a hosting product that uses an existing WHM package, use the following product configuration:

  • For Product Type, select Shared Hosting.
  • For WHM Package Name, select the desired hosting plan.

Defining Custom Options

To configure quotas on a per-account basis, you must have root-level access to the server.

To create a hosting product with a custom package, use the following product configuration:

  • For Product Type, select Shared Hosting.
  • Do not select a package for WHM Package Name.
  • After clicking Switch to Advanced Mode on the right side of the page, enter the desired values for each package setting. If you do not enter a value, the quota will be unlimited.

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.

Log in to WP Squared

The Log in to WP Squared link in the Client Area and the Log in to Control Panel link in the Admin Area use the server hostname if it is available. If not, they use the IP address. The use of http or https login links depends on the Secure setting in the server configuration.

The link in the Admin Area uses the xfercpanel function. When the system prompts you, enter your WHM login details (not the client’s details) to log in to the client’s account.

API Token Permissions

API tokens in cPanel & WHM allow you to restrict the actions that an API token can perform. To do this, you must grant the following permissions in WHM at Development » Manage API Tokens.

  • acct-summary
  • basic-system-info
  • basic-whm-functions
  • cpanel-api
  • cpanel-integration
  • create-acct
  • create-user-session
  • edit-mx
  • kill-acct
  • list-accts
  • list-pkgs
  • manage-api-tokens
  • ns-config
  • passwd
  • show-bandwidth
  • ssl-gencrt
  • suspend-acct
  • upgrade-account

root API Tokens

When creating an API token for the root user, you must also include the viewglobalpackages permission.

Configurable Package Addons

When using the Configurable Package Addon, you must also enable the edit-account permission.

Keep DNS Zone on Termination

When terminating a WP Squared account via the WHMCS Admin Area, you can select Keep DNS Zone to retain the associated DNS zone record. You may wish to use this, for example, when performing an account migration with DNS forwarding.

You cannot recreate a new account on the server using the same domain while the DNS zone exists. You must delete it before you can successfully provision a new account.

Disable Two-Factor Authentication for the API

For the WP Squared module to function when 2FA is enabled for your account, you must ensure that the 2FA requirement is disabled for API requests.

To do this:

  1. Log in to WHM as the root user.
  2. Go to Security Center » Configure Security Policies.
  3. Uncheck API requests.
  4. Click Save.

Troubleshooting

Access Denied/Permission Denied

An Access Denied error indicates that the cPanel server denied WHMCS access to perform the requested action (eg. create or modify the account).

To investigate and resolve this issue:

  1. Go to Configuration () > System Settings > Servers.
  2. Check whether the server settings, including the username and API token, are valid.
  3. Check whether the API credentials for the server have the required permissions to perform the action.
  4. Go to the client’s profile and choose the Products/Services tab.
  5. Check to ensure that the Username and Server values match the account records in WHM.
  6. Check whether the user has the required permissions to manage the WP Squared hosting account.

Click Test Connection to confirm that the account has access.

Sorry, that username is reserved

cPanel & WHM does not allow usernames to contain several words, including test. Change the hosting account’s username and run the Create command again.

Login Failed

There are two possible causes for this error:

  • The login details under Configuration () > System Settings > Servers are incorrect. Make certain that you are using either the username and API key or the username and password combination and that the login details are correct.
  • The brute force protection settings are preventing WHMCS from creating, suspending, or terminating accounts via the cPanel API. Adjust these settings in WHM.

No user name supplied: “username” is a required argument

This indicates that the username under the client profile Products/Services tab is empty.

Enter a username, save the changes, and then run the Create command again.

When you do this, also ensure that you have checked Require Domains at Configuration () > System Settings > Products/Services.

Action Failed Unable to auto-login. Please contact support

This indicates that the username under the client profile Products/Services tab is empty.

Enter a username, save the changes, and then run the Create command again.

When you do this, also ensure that you have checked Require Domains at Configuration () > System Settings > Products/Services.

This module requires a WP Squared server with a valid license and the ‘WP Squared’ server profile.

This error indicates that you are attempting to use a server that does not run WP Squared or does not have a valid WP Squared license. Make certain that your server has the correct license and uses the correct server profile.

To do this, you can:

Last modified: June 11, 2024