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.

I am Trying to Setup Multiple Accounts with a Script

Discussion in 'General Discussion' started by MojoCreations, Apr 7, 2012.

  1. MojoCreations

    MojoCreations Active Member

    Joined:
    Feb 14, 2012
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I need to setup multiple accounts within WHM using iMacros but its failing because of the session variable and the frames. I dont' have to use iMacros, is there any other way to automate the setup of multiple accounts?

    I wanted to add that I did try to loop through iMacros using the basic URL call but got an access denied, do i need to use a security key to make this happen?
    https://server:2087/xml-api/createa...n.tld&domain=domain.tld&useregns=0&reseller=0

    I do have root access to the box so i could run some sort of script. I have over 200 accounts that i need to make, they will all use the same plan and the only difference will obviously be the domain name and the username for the account.

    I do know I can run /scripts/wwwacct but im not sure how i would loop it. Can i have it pull from a csv file? Can i also do the same thing for email accounts for each of these accounts?

    Thanks
     
    #1 MojoCreations, Apr 7, 2012
    Last edited: Apr 8, 2012
  2. MojoCreations

    MojoCreations Active Member

    Joined:
    Feb 14, 2012
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Anyone out there able to help with this?
     
  3. JayFromEpic

    JayFromEpic Well-Known Member

    Joined:
    Apr 2, 2011
    Messages:
    204
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Scottsdale, AZ
    cPanel Access Level:
    Root Administrator
    Can you give us a better idea as to what sort of setup you are using?

    If you are trying to find something to automate your account setups, I suggest WHMCS, which includes a support desk and payment gateways.
     
  4. MojoCreations

    MojoCreations Active Member

    Joined:
    Feb 14, 2012
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Thanks for the response. In response to your questions, I have a dedicated server with full root access which has WHM/cPanel. I need to setup 200 domains accounts (accounts within WHM) because each domain has their own IP. I would like to run a script of some sort that will make the account name,domain,username,password,assign package type, use registrar dns. This way I won't have to manually make an account in WHM for each of the domains. I know /scripts/wwwacct can make the account but how can i have it run through the list of domains that i need? Do I make a .csv file for it to cycle through?

    It would be nice to do the same thing for an email account for each domain as well.
     
  5. JayFromEpic

    JayFromEpic Well-Known Member

    Joined:
    Apr 2, 2011
    Messages:
    204
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Scottsdale, AZ
    cPanel Access Level:
    Root Administrator
    I don't believe their is a script out there to do that. I suggest just hiring someone and paying them a few bucks to do it.
     
Loading...

Share This Page