Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: Fastest way to create 50 cpanel accounts

  1. #11
    Rizy is offline Newbie Net Builder
    Join Date
    Mar 2009
    Thanked 7 Times in 5 Posts
    eh, it's a longshot and i'm no pro with php or shell but heres my idea.
    1. googled a WHM account creator. so make a .php file with the following:
    Create a WHM/cPanel Account | Mr PHP
    edit it per needs of each domain. run the script via ssh. then repeat for all 50. guessing it'll take <1 hour max.

    2. get files from nux, and extract OR use server-to-server FTP.

    1. create a shell file with all of the domains in a list something like: (if you have a list, i'd say just use the replace method in notepad to make it work some how.) so you have a total of 50.

    mv /var/www/<>/htdocs/ /eep/home/<cpanelname>/public_html/

    2. zip up all of the contents in /eep/, or FTP server-to-server all of them into the /home/ dir.

    my two cents, i don't really code much - but i see no reason why this wouldn't work.

  2. #12
    vectro's Avatar
    vectro is offline I Like Stuff
    Join Date
    Dec 2008
    Thanked 104 Times in 82 Posts
    cPanel sets up accounts like /home/username/public_html and if you have an add-on domain it uses /home/username/public_html/ One option might be to create one master account in WHM with 50 add-on domains. The only problem is....

    The fact that the original server has its home directories set up like /var/www/ would make it hard to just zip the whole lot and unzip it. It would be easier if the directories were /var/www/ (without the htdocs folder).

    I take it the original server doesn not use cPanel/WHM because then it would be very simple to transfer accounts from one server to the other.

    I think your way with the script works theoretically. I can't think of any reason off the top of my head why it wouldn't.

  3. #13
    nux is offline Moderator
    Join Date
    Dec 2008
    Thanked 77 Times in 54 Posts
    We've decided to go forward with creating 50 addon domains for an account with the structure like:


    I'll just do a simple script to make the structure...something like this comes to mind
    for i in `ls`;do mv $i/htdocs newstructure/$i;done

    then just goto newstructure and tar...from there copy to the addon sub folder and extract.

    Anyone see any issues with this theory?
    Submit Your Proxies @

  4. #14
    Rizy is offline Newbie Net Builder
    Join Date
    Mar 2009
    Thanked 7 Times in 5 Posts
    I found a script on google written in php that parks domains from a list, coding shouldn't be much different to do addons. I was under the impression you wanted a new account for each.

    Just create an .sh file and move them to the correct context, then run the mass addon domain script.

    I'm in class all day or I'd give you some code, sorry dudes.

Page 2 of 2 FirstFirst 12

Similar Threads

  1. What's the fastest?
    By imported_Daniel in forum Community Building
    Replies: 1
    Last Post: 30 June, 2010, 20:27 PM
  2. Fastest way to Go Viral
    By Sami4u in forum Promoting
    Replies: 17
    Last Post: 26 April, 2010, 09:47 AM
  3. Replies: 0
    Last Post: 25 February, 2010, 23:21 PM
  4. Replies: 0
    Last Post: 12 December, 2009, 19:32 PM
  5. [WTH] Create Accounts, Profiles, & Participate in Specified Websites
    By JackBlack in forum Marketplace
    Replies: 0
    Last Post: 12 August, 2009, 18:12 PM

Tags for this Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts