Ricardo Lobo

Member
Oct 11, 2016
23
2
3
Brazil
cPanel Access Level
Root Administrator
Hello @Guilherme Nastrini,

Here's a thread where the available UAPI functions to manage MySQL databases are noted:

SOLVED - Create new mysql Databases command/shell?

Additionally, here's a PHP client class you may find helpful (there's a MySQL database creation script under "examples"):

N1ghteyes/cpanel-UAPI-php-class

Let me know if this helps.

Thank you.

Obrigado.
I have the same problem, is it possible to go back to an earlier version of my cPanel / WHM?

I have a cPanel API running almost 100%. With the update of cPanel & WHM, version 74. Only a few features have stopped:

1 - Create email accounts
2 - Transfer files via ftp from one account to another

In my case I have the following error log:

Code:
[21-Aug-2018 12:06:36 Brazil/East] PHP Warning:  ftp_login(): Login authentication failed in /home/login/public_html/central/pasta/controllers/clientes-controller.php on line 9718

[21-Aug-2018 12:06:36 Brazil/East] PHP Warning:  ftp_put(): You aren't logged in in /home/login/public_html/central/pasta/controllers/clientes-controller.php on line 9726

[21-Aug-2018 12:06:36 Brazil/East] PHP Warning:  ftp_put(): You aren't logged in in /home/login/public_html/central/pasta/controllers/clientes-controller.php on line 9731
The problem is that I can not find an example of the json file, and if I need to change my API script, it will take weeks ...

Any guidance?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
Hello Ricardo,

You'll need to modify any scripts that make use of the XML-like output of our API since it's no longer supported. If you need an alternative PHP client class, then the following third-party class may help point you in the right direction:

N1ghteyes/cpanel-UAPI-php-class

Alternatively, you can find a list of companies offering system administration services if this is something you need help with:

System Administration Services | cPanel Forums

I have the same problem, is it possible to go back to an earlier version of my cPanel / WHM?
After you upgrade to a new major version of cPanel & WHM, you cannot downgrade to a previous major version of cPanel & WHM. This is documented at:

Update Preferences - Version 74 Documentation - cPanel Documentation

The best approach if you absolutely want to downgrade would be to setup a new server running an earlier version (use version 70 if you take this approach since it's the LTS release), and then migrate the accounts to the server using WHM >> Transfer Tool.

Thank you.
 
  • Like
Reactions: N1ghteyes

TimPhin

Member
Mar 18, 2015
12
0
1
AL
cPanel Access Level
Root Administrator
Why would something be removed that worked fine? This has really put my business in a bind.

Any way to quickly made adjustments to the xmlapi (cPanel XMLAPI Client Class) to work with json?

---- Nevermind, might be able to make some adjustments to the current files.
 
Last edited:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
Hi @TimPhin,

Here's a quote from our March 2017 Development Update blog post regarding the removal of the XML-like output of our API:

XML-like output of APIs
The XML-like output of our API (often called the XML API) is already officially deprecated, and cPanel & WHM Version 70 will be the last version to support this output. Integrators and API users will want to begin switching to use the JSON output of the API now. The XLM-like format has long caused problems for integrators and developers because it is not valid XML, and we find that removing it completely will help reduce that.
---- Nevermind, might be able to make some adjustments to the current files.
Could you share the specifics of any changes that you make should those changes allow your scripts to work again?

Thanks!