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.

Create Account From Shell

Discussion in 'cPanel Developers' started by Ben Harris, Jan 15, 2010.

  1. Ben Harris

    Ben Harris Member

    Joined:
    Mar 31, 2008
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    Hi Everyone,

    I am currently working on a project to enable cPanel server admins to easily import Plesk backups. So far I have a script that extracts the Plesk backup and extracts certain relevant information that I need. My next step is to create the account with the information I have. Please could someone explain what the following vars are

    <cpmod[advanced/?]> - I take it that this is the theme, so would I use "x3"
    <plan> - Is this just the plan name (On the basis that the requirements are specified, could it just be anything)?
    <use_registered_nameservers> - would "n" be a valid value for this?

    Below is the information on the parameters that wwwacct takes
    This is what I have so far, is the rest of this valid?
    Many thanks for any help in advance,

    Ben
     
  2. MattDees

    MattDees cPanel Product Owner
    Staff Member

    Joined:
    Apr 29, 2005
    Messages:
    417
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    cpmod is the theme, so yes, x3 :)
    plan is the name of the plan to be used, if you don't want to use a plan, please use 'default'
    use_registered_nameservers, yes, 'n' would be a valid value.
     
  3. Ben Harris

    Ben Harris Member

    Joined:
    Mar 31, 2008
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    Hi Matt,

    Thanks very much for the reply, it is working well now.

    Just one little thing that others looking for this thread might appreciate is that if you set all of the features to unlimited, it will allocate 0 and not unlimited for all features excluding addon and parked domains. My "fix" was to just set them to 100, realistically most accounts will be using 1-2 at max, so it shouldn't really be a problem.

    Regards,

    Ben
     
Loading...

Share This Page