Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Creating mysql databases with xmlapi.php issue

Discussion in 'cPanel Developers' started by Daniel Enriquez, Aug 21, 2018.

  1. Daniel Enriquez

    Daniel Enriquez Registered

    Joined:
    Aug 21, 2018
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Mexico
    cPanel Access Level:
    Root Administrator
    Hello.

    I have some problems with the new version of cpanel v74.

    Previously I used xmlapi to create mysql databases and users from php script. Now with this version I cant do it anymore.

    Do anyone knows how to achieve this with v74?.

    Thanks.
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,335
    Likes Received:
    2,162
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello Daniel,

    Support for the XML-like output of our API was removed from the product in cPanel & WHM version 74:

    If you'd like to develop PHP scripts that make use of UAPI or cPanel API 2 functions, then you'll need to use a different PHP client class. Here's a user-submitted PHP client class for UAPI that should help you get started:

    N1ghteyes/cpanel-UAPI-php-class

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. jason213

    jason213 Registered

    Joined:
    Dec 1, 2012
    Messages:
    4
    Likes Received:
    1
    Trophy Points:
    1
    cPanel Access Level:
    Reseller Owner
    Hello,
    that class is working? in version 76? because i have tested and they give me a error.
    Thanks
     
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,335
    Likes Received:
    2,162
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @jason213,

    That's a user-submitted PHP client class for UAPI, so while it may offer insight into how you can create PHP scripts that make use of our UAPI functions, it's not supported or tested to work.

    Note that you can still use the official cPanel PHP client class found at:

    CpanelInc/xmlapi-php

    While the XML serialization is no longer available, you should still be able to use the above package with JSON serialization. See the note below:

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice