CyberPanel WHMCS Module

CyberPanel WHMCS Module

Using WHMCS module for CyberPanel, you can sell or automate basic functions of CyberPanel for your customers. You can install this module by following WHMCS server module installation steps. Here they are again:-

Option 1 (Recommended)

  1. Login to SSH for whmcs server
  2. Navigate to path_to_whmcs/modules/servers
  3. Clone this repo into cyberpanel folder
git clone https://github.com/jetchirag/cyberpanel-whmcs.git cyberpanel

Option 2

  1. Download this repo as zip file
  2. Navigate to path_to_whmcs/modules/servers
  3. Upload and extract the file in cyberpanel folder (create new)

Functions of this module are:

  • Create new website or user account
  • Terminate website
  • Suspend or un-suspend website
  • Change package
  • Change user password
  • Auto-login for Customer or Admin user

Common Errors

Error:
 Data supplied is not accepted, following characters are not allowed in the input ` $ & ( ) [ ] { } ; : ‘ < >.

Solution: Remove those special character from service’s password

Error:
API Access Disabled.

Solution: Enable API Access from CyberPanel for user

Error:
Unknown Error Occurred

Solution: Usually means WHMCS is unable to reach api. Ensure hostname/ipaddress is correct and CyberPanel access port is open i.e. 8090 in firewall.

Great work Jetchirag! Thanks for improving it further! We would appreciate it a lot if we can also choose the ACL or max website with the module. As now API supports both I believe

Type your comment> @Zalcig said:

Great work Jetchirag! Thanks for improving it further! We would appreciate it a lot if we can also choose the ACL or max website with the module. As now API supports both I believe

I’m not aware of any such feature - cyberpanel/views.py at stable · usmannasir/cyberpanel · GitHub

Don’t think that’s available yet.

API doesn’t support this yet. There is an issue if any website failed to terminate automatically it shows in the whmcs pending action menu and when you retry the action it shows success but the website still remain. We have to manually remove the site.

Thank you so much.
Much appreciate your works <3

Use the “phpseclib” library to implement CLI

Hello
I have installed WHMCS module using steps given in GitHub - jetchirag/cyberpanel-whmcs: Official Module for CyberPanel to integrate it with WHMCS. Cyberpanel is a web hosting control panel powered by Litespeed with lots of features link. After installing it is showing below files but no single file is getting accessed.

api.php
cyberpanel.php
LICENSE
Readme.md

http://mydomain/api.php == showing blank page
http://mydomain/cyberpanel.php === This file cannot be accessed directly

Can anyone tell me how it works after installation?

Thank you

Please provide solution as I am new to this and want to use whmcs for my website.

@mazeweb You have to upload these files in modules/servers/cyberpanel not in webroot. You can then add a new server for cyberpanel like usual in WHMCS.

Update is available.

  • Ability to change ACL for service
  • Configure custom port
    @Zalcig

Great addon, Just tested it, Creates the account no problem, But doesnt seem to suspend the account or terminate. it changes the whmcs status to suspend and terminate, But it doesnt suspend nor terminate via CyberPanel

can you please tell where can I generate Api key / access hash for whmcs?

Hi everyone!

This is my first post here. Thanks, jetchirag for the module.

I have installed the module and set everything up on my server and WHMCS, including creating a special user, assigning an ACL and enabling API Access, but like @usamayounus, I cannot find an “Access Hash” anywhere. Is this the SSH key?

Any help with this will be greatly appreciated. Thank you!

Type your comment> @TrevorRoberts said:

Hi everyone!

This is my first post here. Thanks, jetchirag for the module.

I have installed the module and set everything up on my server and WHMCS, including creating a special user, assigning an ACL and enabling API Access, but like @usamayounus, I cannot find an “Access Hash” anywhere. Is this the SSH key?

Any help with this will be greatly appreciated. Thank you!

you don’t need any “Access Hash” simply use your API user id normally “admin” or your reseller id with API permission & it’s password, you may be get “unknown error” just ignore it & continue rest of the setup. You are done.

@biswashost Thank you very much!

i got no error
but cannot create user… no error message, i just check my cyberpanel user list,


and access direct login from whmcs go to wrong url

It connects to WHMCS, but it is not creating an account, it does not suspend or activate the service on the cyberpanel.

I use the newest versions of both software.

I am very keen to get this working but I can’t! :cry:

I have a new install of Cyberpanel.
Server says it’s listening on port 8090.
External test shows port 8090 is open.
I created a new admin user for whmcs.
Removed any symbols from the password.
Added API access to user.
When setting up the server in WHMCS I get ‘Unknown Error’ on test.
The login to control panel button works fine.
When testing a new order I get “Order Accept Encountered Problems”
Generated password has no symbols.

I have retried this process several times without success. Where am I going wrong?

Can you please check if there’s anything in module log?