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.

Creating a Reseller Account with php

Discussion in 'General Discussion' started by methos, Oct 28, 2007.

  1. methos

    methos Member

    Joined:
    Sep 25, 2007
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    I've been trawling the forums trying to find a solution to this, but no joy.

    I have a working script that creates accounts using the Accounting.php.inc functions ... bascially ...

    $create = createacct($host,$user,$accesshash,$usessl,$acctdomain,$acctuser,$acctpass,$acctplan);

    However, what I really want to be able to do is tell it to create an account with reseller priviledges.

    Can anyone tell me how to do this?

    Thanks
     
  2. methos

    methos Member

    Joined:
    Sep 25, 2007
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    never mind. i figured it out.
     
  3. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    For those finding this thread in the future, WHM's XML API also offers a means by which to do this :).
     
  4. methos

    methos Member

    Joined:
    Sep 25, 2007
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    Thanks David, that's what I had to use ... ;)

    Although I am still having problems figuring out how to assign the reseller as the owner of its account, they are all assigned as owned by root ... I couldn't find a parameter for that - can you help?

    Thanks.
     
  5. methos

    methos Member

    Joined:
    Sep 25, 2007
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    oh ... and also how to assign the correct priveleges to it ....
     
  6. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Here's some docs on how to promote a user to reseller status and set them to be owner of their own account:

    http://www.cpanel.net/plugins/xmlapi/setupreseller.html
     
  7. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page