SOLVED Moving account with protected directory to new server

SPaul

Registered
Aug 27, 2015
4
0
1
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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,226
463
Hello,

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

Thanks!
 
  • Like
Reactions: SPaul

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,226
463
I'm happy to see it worked well. Thank you for updating us with the outcome.