Slav Posted November 2, 2017 Share Posted November 2, 2017 Ok so I had the same situation! After migrate, could not Log in. To prevent this problem I found that migration should be done in a proper order. 1. Install PW on your new domain. 2. Copy and replace the /site directory. (if needed delete the content of site/assets/cache, i think I did that, sorry I repeated the process a lot of times because of failures so not sure about that anymore ) 3. modify "site/config.php" so the DB info is correct, confirm that userAuthSalt is correct (same as in your old domain or local dev version) 4. copy and replace the ".htaccess" in the root dir 5. Now export and import the DB (if I did it before previous steps then it did not work in my case, so its important to do it now) Now go into admin and check if there aren't any errors and try to log in. It worked for me! Hope it helps some of you! Cheers! 1 Link to comment Share on other sites More sharing options...
szabesz Posted November 2, 2017 Share Posted November 2, 2017 Thanks for the tip, I think generally it is the way to go, however, I would like to add a few comments: On 11/2/2017 at 10:23 AM, Slav said: 2. Copy and replace the /site directory. (if needed delete the content of site/assets/cache Expand It can be useful if there are "permission issues". On 11/2/2017 at 10:23 AM, Slav said: 3. modify "site/config.php" so the DB info is correct, confirm that userAuthSalt is correct (same as in your old domain or local dev version) Expand Do not forget httpHosts either and other settings might be important to change too. On 11/2/2017 at 10:23 AM, Slav said: 4. copy and replace the ".htaccess" in the root dir Expand .htaccess might also be different on staging and live (production) so proceed accordingly On 11/2/2017 at 10:23 AM, Slav said: 5. Now export and import the DB (if I did it before previous steps then it did not work in my case, so its important to do it now) Expand It should not matter which step it is. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now