I've got a WP installation at server-a.example.com
(serverA) and I want to duplicate it on a different server which is server-b.example.com
(serverB).
My steps are:
- Copy database
- Copy files
- No need to edit
wp-config.php
(database details are just the same, localhost same user same password)
- No need to edit
- Replace serverA domain with serverB into the database using this tool
The serverB clone seems to work, but I experience two problems:
- I cannot login into
wp-admin
of serverB because I receive the errorCookies are blocked or not supported by your browser`
- WordPress changes the active theme
Now I'd like to understand the reason behind problem #2, but let that alone for the time being, I've only reported it as it might be a hint for you to spot the real problem.
The question is how do I login? Needless to say, my browser does support cookies and I've tried with different browsers too. I've tried resetting the administrator password via SQL (just in case), but it still blocks me out with the cookies message.
P.S. I'm not sure this question belongs here or serverfault or what else, please move it as needed.
EDIT:
This is not a duplicate because the accepted answer for the other existing question does not hold in my case: there's no Varnish/NGINX/Squid/other reverse proxy on my servers.