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
    Posts
    42
    Thanks
    0
    Thanked 7 Times in 5 Posts
    eh, it's a longshot and i'm no pro with php or shell but heres my idea.

    proxysites.ca:
    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.

    nux:
    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/<domain.com>/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
    Location
    U.S.A.
    Posts
    633
    Thanks
    192
    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/addondomain.com. 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/domain.com/htdocs would make it hard to just zip the whole lot and unzip it. It would be easier if the directories were /var/www/domain.com (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
    nux is offline Moderator
    Join Date
    Dec 2008
    Location
    Minneapolis
    Posts
    534
    Thanks
    28
    Thanked 77 Times in 54 Posts
    We've decided to go forward with creating 50 addon domains for an account with the structure like:

    vhosts/domain.com/

    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 @ NewProxySites.com

  4. #14
    Rizy is offline Newbie Net Builder
    Join Date
    Mar 2009
    Posts
    42
    Thanks
    0
    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, 21:27 PM
  2. Fastest way to Go Viral
    By Sami4u in forum Promoting
    Replies: 17
    Last Post: 26 April, 2010, 10:47 AM
  3. Replies: 0
    Last Post: 26 February, 2010, 00:21 AM
  4. Replies: 0
    Last Post: 12 December, 2009, 20:32 PM
  5. [WTH] Create Accounts, Profiles, & Participate in Specified Websites
    By JackBlack in forum Marketplace
    Replies: 0
    Last Post: 12 August, 2009, 19:12 PM

Tags for this Thread

Bookmarks

Posting Permissions

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