Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Member
    Join Date
    Sep 2007
    Posts
    20

    Default Creating a Reseller Account with php

    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. #2
    Member
    Join Date
    Sep 2007
    Posts
    20

    Default

    never mind. i figured it out.

  3. #3
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    For those finding this thread in the future, WHM's XML API also offers a means by which to do this .

  4. #4
    Member
    Join Date
    Sep 2007
    Posts
    20

    Default

    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. #5
    Member
    Join Date
    Sep 2007
    Posts
    20

    Default

    oh ... and also how to assign the correct priveleges to it ....

  6. #6
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by methos View Post
    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.
    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. #7
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by methos View Post
    oh ... and also how to assign the correct priveleges to it ....
    Setting up reseller privileges:

    http://www.cpanel.net/plugins/xmlapi/setacls.html

Similar Threads & Tags
Similar threads

  1. Creating Reseller Accounts using PHP?
    By sshum in forum cPanel Developers
    Replies: 11
    Last Post: 09-17-2007, 07:54 PM
  2. Help in Creating Reseller account
    By SiLeNt^^LuCiDiT in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 06-21-2007, 08:36 AM
  3. unable to view packages in reseller account while creating a new account.
    By brian jones in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 12-21-2006, 09:30 AM
  4. Reseller creating account with IP
    By I-Web in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 06-23-2006, 07:35 PM
  5. Creating Reseller Account
    By Taoron in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 03-12-2003, 03:50 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube