A WHMCS Support setup script is provided for your convenience to automate the installation of the WHMCS Support SSH Public Key and addition of the required IP addresses to iptables for cPanel and Plesk servers. For all other server types, see Other.
cPanel
To use the WHMCS Support setup script, you must grant Normal Shell access for the cPanel account on your server which contains the WHMCS instance. For instructions refer to Managing Shell Access.
- Connect to your server's SSH terminal as the root user. If you do not have root access to your server, please ask your server admin/hosting provider to complete these steps for you.
- Run the following command:
sh <(curl https://raw.githubusercontent.com/whmcs/path/to/script.sh || wget -O - https://raw.githubusercontent.com/whmcs/path/to/script.sh)
- When prompted, type your control panel type; cpanel and press return.
- When prompted, type the username of the account on your server which contains the WHMCS instance, and press return.
Once completed, the script will display "Done".
Should you encounter any issues with the script, please follow the steps for other control panels below.
Once the support request is resolved, run the following command to remove the WHMCS Support SSH key:
sed -i '/[email protected]/d' ~/.ssh/authorized_keys
Plesk
To use the WHMCS Support setup script, you must set SSH access type set to /bin/sh
or /bin/bash
for the Plesk subscription on your server which contains the WHMCS instance. For instructions refer to Enabling SSH Access.
- Connect to your server's SSH terminal as the root user. If you do not have root access to your server, please ask your server admin/hosting provider to complete these steps for you.
- Run the following command:
sh <(curl https://raw.githubusercontent.com/whmcs/path/to/script.sh || wget -O - https://raw.githubusercontent.com/whmcs/path/to/script.sh)
- When prompted, type your control panel type; plesk and press return.
- When prompted, type the System User of the hosting subscription on your server which contains the WHMCS instance, and press return.
Once completed, the script will display "Done".
Should you encounter any issues with the script, please follow the steps for other control panels below.
Once the support request is resolved, run the following command to remove the WHMCS Support SSH key:
sed -i '/[email protected]/d' ~/.ssh/authorized_keys
Other
If the server hosting WHMCS uses a different control panel or has no control panel, you must allow the support IP addresses and add the SSH key manually:
1. WHMCS Support uses the following IP address ranges to connect to servers:
208.74.120.226
195.214.233.0/24
194.8.192.130
81.184.0.141
208.74.127.0/28
184.94.197.2
2001:678:744::/64
2620:0:28a4:4000::/52
The IP ranges above must be able to reach at least TCP ports 22 (SSH on Linux).
2. Download the WHMCS Support SSH Public Key from https://example.com/
3. Add the SSH Key to your server to provide user-level access.
For the purposes of troubleshooting a PHP script such as WHMCS we require the ability to read & write WHMCS file. Server root permissions are not required. Therefore in-line with best security practice - to use only the strictly necessary levels of access - we discourage the provision of root credentials.
4. Once the support request is resolved, remove the [email protected] SSH Key.
Please refer to your control panel or OS documentation for instructions to complete these steps.