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!

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:
    267
    Likes Received:
    20
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  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 Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,802
    Likes Received:
    1,896
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

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

    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    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 Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,802
    Likes Received:
    1,896
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    I'm happy to see it worked well. Thank you for updating us with the outcome.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

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