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.

Transfer site from server1 /home/ to server2 /home2/

Discussion in 'Data Protection' started by Felipe Quiroz Sandoval, Sep 15, 2016.

Tags:
  1. Felipe Quiroz Sandoval

    Joined:
    Jun 10, 2016
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Chile
    cPanel Access Level:
    Root Administrator
    Transfer sites from server1 with /home/ default home folder to a new server2 with /home2/ default folder.

    The question is: What happend with the php scripts on sites with full path pointing to /home/username/...?
     
  2. radeonpower

    radeonpower Well-Known Member

    Joined:
    Jul 23, 2009
    Messages:
    129
    Likes Received:
    1
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    I did the same few days ago. My server created symlinks in /home pointing to the user on /home2 and I havent had any problems yet.
     
  3. tweaker

    tweaker Member

    Joined:
    Sep 25, 2015
    Messages:
    14
    Likes Received:
    1
    Trophy Points:
    1
    Location:
    India
    cPanel Access Level:
    Root Administrator
    if you are using the WHM transfer tool, it should automatically take care of this when your homedir is on home2

    if you are manually moving it via ftp you would need to take care of scripts to be updated.
    you can find all files which have home path reference and then edit them to fix it.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    Does /home link to /home2 on the destination server? You can check this with a command such as:

    Code:
    stat /home
    Thank you.
     
Loading...

Share This Page