Creating a Reseller Account with php

methos

Member
Sep 25, 2007
20
0
51
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
 

methos

Member
Sep 25, 2007
20
0
51
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.
 

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,212
13
313
Houston, TX
cPanel Access Level
Root Administrator
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