Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Aug 2005
    Posts
    2

    Default /home and /home2 on one drive... is it possible?

    I am moving to another server soon. The old server had 2 hard drives and the new server only has one huge drive. Three of my accounts have problems when I tried to move them to the /home drive (they were on a /home2 drive on the old server). They are running joomla and one of the php scripts is looking for some files or something in a /home2 directory.... that doesnt exist on the new server.

    So, I was thinking about creating a /home2 directory on the new server and moving that way, but I am not certain how to do it outside of whm. I can create a folder using putty commands, but whm doesnt see it.

    Any help on this would be much appreciated.

  2. #2
    Member
    Join Date
    Sep 2004
    Location
    inside a catfish
    Posts
    963
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    My suggestion would be:

    NOTE: Make sure you create /home2 first. Then 'ls -alt /|grep home' - make sure /home2 has the same permissions as /home and that /home2 is owned by the same user and group as /home. AFTER you have verified that /home2 is created and has the same ownership and permissions as /home, do the following:

    1. Log into WHM
    2. Click on Server Configuration
    3. Select Basic CPanel/WHM Setup
    4. Change Home Directory Prefix to: /home2 and SAVE
    - only do this while you are creating/moving the problematic accounts

    Then when you create new accounts or move/import accounts, they will be placed on /home2.

    AS SOON AS you are finished getting those few accounts moved onto /home2, you will want to repeat #1 through #3, and then in step #4 change Home Directory Prefix back to: /home and SAVE.

    That way your new accounts will continue to be made on /home but Cpanel will create those few problematic accounts on /home2.


    Mike

  3. #3
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by jmmenef View Post
    I am moving to another server soon. The old server had 2 hard drives and the new server only has one huge drive. Three of my accounts have problems when I tried to move them to the /home drive (they were on a /home2 drive on the old server). They are running joomla and one of the php scripts is looking for some files or something in a /home2 directory.... that doesnt exist on the new server.

    So, I was thinking about creating a /home2 directory on the new server and moving that way, but I am not certain how to do it outside of whm. I can create a folder using putty commands, but whm doesnt see it.

    Any help on this would be much appreciated.
    Note that Joomla does have 2 configuration settings in which absolute paths are used. These may still be set to the old settings of /home2, you may want to just take the easier solution of changing these 2 entries rather than messing with creating an entirely new partition.

  4. #4
    Member
    Join Date
    Aug 2007
    Posts
    23

    Default

    If you are running Linux, try adding this line to /etc/fstab
    /home /home2 none bind 0 0

    And run as root
    mount /home2

    Now all files under /home would be accessible under /home2 as well.

    Works for me.

  5. #5
    Member DeepakW's Avatar
    Join Date
    Nov 2005
    Posts
    33

    Default

    Creating new home2 is not a good idea instead just check the configuration of the joomla
    and change the settings for it.

Similar Threads & Tags
Similar threads

  1. Replies: 1
    Last Post: 03-17-2011, 07:13 PM
  2. home2 to home
    By vmicovic in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 01-15-2008, 06:40 PM
  3. /home & /home2 How to?
    By aboyz in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 09-15-2004, 12:36 AM
  4. Home Home2
    By jackal in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 02-28-2004, 04:17 PM
  5. I have /home and /home2.. can I backup both to /home2?
    By fog in forum cPanel and WHM Discussions
    Replies: 10
    Last Post: 10-27-2002, 01:23 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube