The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    18
    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.
     
Loading...

Share This Page