How to create cPanel account from terminal?
Hello,
I'm in a situation where I need to create new cPanel account before the server is licensed(on a new server deployment).
Basically I need an alternative to this command because the API is not available without license:whmapi1 createacct username=user domain=domain.name password='password' plan=PLAN contactemail=user@some.domain
The only alternative I currently have is using the /scripts/wwwacct, however it doesn't quite do the job.
If i run this:
/scripts/wwwacct domain username "password" default jupiter n n root contactemail
The user is created without contactemail and in default plan.
If i use something like this:
/scripts/wwwacct domain username "password" unlimited jupiter n y n unlimited unlimited unlimited unlimited unlimited 3145728 n root PLAN unlimited unlimited default CLIENTEMAIL 1 en Y unlimited Y 0 Y
It creates the user but it doesn't respect the PLAN's limits and quotas like the API call does.
Any ideas?
Probably creating the account just to be created and then changing the plan/package of the account would set the correct limits?
Regards
-
Hey there! I'm interested to know why you would need to create an account before the server is licensed - what advantage would that serve, since the user wouldn't be able to access cPanel without the license either.
But no, I don't have any better workarounds available on my end.
0 -
Hey! We are starting a hosting company and for the managed VPS service we can deploy everything automatically but we cannot get the license because cPanel partnership program is closed and we cannot use their API to obtain licenses. Thus we want to have everything running and all we have to do manually is buying the license for the client's IP.
0 -
I just spoke with the team a few minutes ago and they confirmed the Partner applications are reopened, so that is likely your best route to success here as I don't really have a workaround from a code perspective. Taking advantage of Partner-only license types would likely solve all these issues for you.
0
Please sign in to leave a comment.
Comments
3 comments