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.

SOLVED Moving account with protected directory to new server

Discussion in 'Data Protection' started by SPaul, Jan 30, 2017.

  1. SPaul

    SPaul Registered

    Joined:
    Aug 27, 2015
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Seattle
    cPanel Access Level:
    Root Administrator
    So I have to move a web hosting account from one VPS to another. Just normal stuff except one folder under public_html called 'members' is password protected. I see the .htaccess file in the folder which points to the actual password file in .htpasswds/public_html/members 'passwd'. Each line of this file contains the user name and a hash of the password.

    Will simply copying this file over work? I presume just copying this file to its counterpart location on the new machine won't work because the hash is machine specific. Is that right? If so, how can I avoid having to manually re-enter hundreds of entries?

    Thank you.
     
  2. Eminds

    Eminds Well-Known Member

    Joined:
    Nov 10, 2016
    Messages:
    174
    Likes Received:
    10
    Trophy Points:
    18
    Location:
    India
    cPanel Access Level:
    Root Administrator
    You should be able to move the account through Copy account function in WHM ... The WHM to WHM migration tool should take care of all the things.
     
  3. SPaul

    SPaul Registered

    Joined:
    Aug 27, 2015
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Seattle
    cPanel Access Level:
    Root Administrator
    I have WHM access only on the target machine.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,029
    Likes Received:
    1,277
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Yes, you can manually copy over the file. Ensure the permissions and ownership values on the file match the source server settings.

    Thanks!
     
    SPaul likes this.
  5. SPaul

    SPaul Registered

    Joined:
    Aug 27, 2015
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Seattle
    cPanel Access Level:
    Root Administrator
    Worked perfectly. Thanks. I really should have just tried it before asking but I assumed it couldn't be that easy. Silly me! Thanks again.
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,029
    Likes Received:
    1,277
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    I'm happy to see it worked well. Thank you for updating us with the outcome.
     
Loading...

Share This Page