Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Jul 2011
    Posts
    2

    Default Access denied : please help:)

    include("../xmlapi.php");

    $ip = 'localhost';
    $root_pass = 'this_is_the_password_I_use_to_loginto_cpanel';
    $account = "this_is_the_username_I_use_to_loginto_cpanel";

    $xmlapi = new xmlapi($ip);
    $xmlapi->password_auth("root",$root_pass);
    $xmlapi->set_output("json");


    print $xmlapi->listparkeddomains($account, null);

    I keep getting an access denied printout... am i using the right pasword or anyideas where i am going wrong?... kind regards J

  2. #2
    Registered User
    Join Date
    Jul 2011
    Posts
    2

    Default Re: Access denied : please help:)

    Boom... found the answer on the forums... set a diff port cos im not root user...

    $xmlapi = new xmlapi($ip);
    $xmlapi ->set_port(2083);
    $xmlapi->password_auth($username,$root_pass);
    $xmlapi->set_output("json");

Similar Threads & Tags
Similar threads

  1. Replies: 3
    Last Post: 02-05-2011, 11:51 PM
  2. access denied
    By http1 in forum New User Questions
    Replies: 3
    Last Post: 02-13-2006, 02:32 PM
  3. Access denied by access control list
    By trout21 in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 10-15-2004, 08:36 AM
  4. Access Denied
    By Markwaugh in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 11-24-2003, 03:55 AM
  5. Access Denied
    By underzen in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 08-25-2003, 11:20 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube