Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Tell Me It Isn't True...No Control of Account Transfer Destination.

Discussion in 'General Discussion' started by dataword, Oct 23, 2007.

  1. dataword

    dataword Registered

    Mar 23, 2006
    Likes Received:
    Trophy Points:
    I need to move 600 accounts to a new server tonight. It's important these accounts maintain their location path in /home because of some scripting not easily altered.

    The server we are moving to has multiple drives partitioned as /home /home2 and a backup drive.

    During a test move, all accounts are automatically sent to /home2, supposedly because there is more space available on that drive. Tell me it's not true that I can't choose which drive to send my accounts to because of changes in Cpanel 11. This is what I've been told but I can't believe the developers would do this.

    Is it true? Can I get verification of this?

    Sure I can rearrange accounts after the move but that's not practical at all considering the quantity and I don't know of any mass move command.

    I'm hoping I received some bad information about this but if it's true, does anyone have a work-around to allow accounts to be installed on the drive of choice?


  2. rpmws

    rpmws Well-Known Member

    Aug 14, 2001
    Likes Received:
    Trophy Points:
    back woods of NC, USA
    have you looked in WHM "tweaks" ? or the general setup page in WHM?
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. owine

    owine Active Member

    Jan 10, 2007
    Likes Received:
    Trophy Points:
    What do you have configured for your "Default Home Directory" and your "Home Directory Prefix" in Basic WHM/cPanel Setup?
  4. mtindor

    mtindor Well-Known Member

    Sep 14, 2004
    Likes Received:
    Trophy Points:
    inside a catfish
    cPanel Access Level:
    Root Administrator
    Assuming you want to continue having new accounts added to /home2 but you just want this specific account that you are transferring over to use /home, do this temporarily:

    1. Log into WHM, click on Basic Cpanel/WHM Setup
    2. Write down what you have for Default Home Directory and Home Directory Prefix
    - make sure you document this so that you can restore these values later
    3. Change Default Home Directory to: /home
    4. Remove anything you have in Home Directory Prefix
    5. Save Settings
    6. Transfer the account that you are wishing to transfer over which requires /home as its base

    7. Go back into WHM, Basic Cpanel/WHM Setup
    8. Restore the previously written down values for Default Home Directory and Home Directory Prefix and save those settings.

    Just so you understand how this works. If you have Default Home Directory listed but Home Directory Prefix is blank, then it will ONLY attempt to install in the directory specified in Default Home Directory.

    However, if you have a value in Default Home Directory (such as '/home') and then you also have a value in Home Directory Prefix (such as 'home'), Cpanel will install accounts into /home only if /home has more freespace than /someother/path/with/the/word/home/in/it. If /some/other/path/with/the/word/home/in/it (based upon the Home Directory Prefix) has more free space than /home, then the account will be installed there.

    So the instructions I have given you disables any other 'home' directory possibilities, thus forcing cpanel to only use /home for install.

    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice