24x7ss

Well-Known Member
Sep 30, 2014
272
19
68
India
cPanel Access Level
Root Administrator
Twitter
Hi,

Yes, it is possible to create a cPanel account using Command line. You just need use command as below:

/scripts/wwwacct

and add correct syntax in front of the command

[email protected] [~]# /scripts/wwwacct
Please use the following syntax:
wwwacct <domain> <user> <pass> <quota> <cpmod[advanced/?]> <ip[y/n]> <cgi[y/n]> <maxftp> <maxsql> <maxpop> <maxlst> <maxsub> <bwlimit> <hasshell[y]/[n]> <owner> <plan> <maxpark> <maxaddon> <featurelist> <contactemail> <use_registered_nameservers> <language>
 
  • Like
Reactions: esultanzada

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Hello,

Yes, as mentioned in the previous post, you can use /scripts/wwwacct to create accounts directly through the command line (assuming you don't want to use API).

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463

esultanzada

Active Member
May 8, 2013
29
0
1
cPanel Access Level
Root Administrator

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
The following example works well for me on a test server:

Code:
/scripts/wwwacct domain.com username password 0 x3 n n n  0 0 0 0 0 0
Feel free to open a support ticket if this is not working so we can take a closer look. You can post the ticket number here so we can update this thread with the outcome.

Thank you.
 
  • Like
Reactions: esultanzada

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
What do the fields that you do not specify get set to?
It uses the same default settings that you see in the interface when selecting "Select Options Manually" via "WHM Home » Account Functions » Create a New Account".

Thank you.
 

esultanzada

Active Member
May 8, 2013
29
0
1
cPanel Access Level
Root Administrator
The following example works well for me on a test server:

Code:
/scripts/wwwacct domain.com username password 0 x3 n n n  0 0 0 0 0 0
Feel free to open a support ticket if this is not working so we can take a closer look. You can post the ticket number here so we can update this thread with the outcome.

Thank you.
Thanks, this works for me:
Code:
/scripts/wwwacct domain.com username password 0 x3 n n n  0 0 0 0 0 0