Josh Murray

Registered
Apr 14, 2016
1
0
1
Glasgow, Scotland
cPanel Access Level
Reseller Owner
Hello there!

I am currently faced with a rather large problem. What I am doing is creating a dashboard for my website. This dashboard will have basically the same functionality as WHMCS; clients will be able to click a button to log into their cPanel account.

Is there a database, that I could access, that would tell or show me all of my clients credentials? So I can then create a script which will place a button on their page and allow them to log into their cPanel just from a click of a button?

Psst.. There must be a database otherwise the 'Login to cPanel' form which you are told to complete when you go to http://yourdomain.com:2083 OR http://yourdomain.com:2087 (2083 for cPanel & 2087 for WHM).

- 'Login to cPanel' picture (documentation.cpanel.net/pages/viewpage.action?pageId=2719926&preview=/2719926/17367465/login%20cPanel.png

Thank you, all help is appreciated.
 
Last edited by a moderator:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Is there a database, that I could access, that would tell or show me all of my clients credentials? So I can then create a script which will place a button on their page and allow them to log into their cPanel just from a click of a button?
Hello :)

The passwords are stored on the filesystem as is standard on Linux based distributions. However, we do offer a guide you can follow at:

Guide to API Authentication - Software Development Kit - cPanel Documentation

There's also a thread here that shows an example of how it's done for email accounts in a PHP script:

php code to login to webmail

Thank you.