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!

xmlapi.php: empty response

Discussion in 'cPanel Developers' started by mundakas, Oct 23, 2013.

  1. mundakas

    mundakas Registered

    Joined:
    Oct 23, 2013
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi,

    I am trying the xmlapi from https://github.com/CpanelInc/xmlapi-php but I don't get any response from server.
    I run the following code and it works... should I activate something on cPanel?

    PHP:
    include_once 'xmlapi.php';

    $ip 'xxxxx';
    $root_pass 'xxxx';

    $xmlapi = new xmlapi($ip);
    $xmlapi->password_auth("root",$root_pass);
    $xmlapi->set_debug(1);
    $acct = array( username => "someuser"password => "pass123"domain => "thisdomain.com");
    print 
    $xmlapi->createacct($acct);
     
  2. KostonConsulting

    KostonConsulting Well-Known Member

    Joined:
    Jun 17, 2010
    Messages:
    255
    Likes Received:
    1
    Trophy Points:
    68
    Location:
    San Francisco, CA
    cPanel Access Level:
    Root Administrator
    Try using the set_debug() function to turn on added output. It may show some errors preventing the response from being returned.

    You may also want to tail /usr/local/cpanel//logs/error_log on the server to see if it provides any useful information.
     
    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