Migrate to localhost…

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #555908
    Bill Antolec
    Participant

    I’m trying to build a new WordPress website. I had some help and had set up a staging site. Then we decided to make the staging site the live site and do the staging locally instead. I’m using Linux Mint 19.3 with LAMP (Ubuntu 18.04.1, Apache2 2.4.29, PHP 7.2, and MySQL 5.7.29) and WordPress v5.4.

    I purchased UpdraftPlus Premium installed on both my live site and the local staging site. I did a backup of the live site. Copied the backup files to the local computer and then then followed your directions to do a restore. At the end I got the message that everything was successful!

    I opened a browser and typed in “localhost/wordpress” and up came the site as I expected! However, as I clicked on the various pages for the site, every page reported not found!

    Thinking I did something wrong, I did a new backup. Copied the files again and followed the directions again to do the restore. At first I got a message saying the old files needed to be removed. After I did that, the restore worked and ended with a successful completion message. Now my localhost site is really messed up! When I try to go to localhost/wordpress it comes up to part of a subpage with a not-found message in the middle of the page. Any link I click on attempts to go to the live site, not localhost. And if I try to “localhost/wordpress/wp-admin”, it replaces my link with the live site link.

    It appears I’m really stuck now and can’t do anything! Help! What do you suggest?
    Thanks,
    Bill

    #555909
    Bill Antolec
    Participant
    This reply has been marked as moderator-only.
    #556091
    Bryle Crodua
    Moderator

    Hi Bill,

    Can you try to reset the permalinks?
    You can do this by going to your sites ‘Settings’ menu > Permalinks.
    You will need to set this back to default or ‘plain’ and save settings.
    Then set it again to your previous or preferred settings and then save settings again.

    Does that resolve the issue?

    Regards,
    Bryle

    #562682
    Bill Antolec
    Participant

    Bryle,

    Thanks for your suggestion and sorry for the delay. I’ve been otherwise occupied and couldn’t get back to you before this.

    Here is the problem. When I go to localhost/wordpress/wp-admin it redirects me to my life site. I’m not able to log into the wordpress on my local machine. Any suggestions?

    Thanks,
    Bill

    #562837
    Bryle Crodua
    Moderator

    Hi Bill,

    It seems like the tick the “Search and Replace Database” option was not selected during migration.
    To fix, please see FAQ: https://updraftplus.com/faqs/migrated-site-searchreplace-database-can-now/

    Regards,
    Bryle

    #563381
    Bill Antolec
    Participant

    Bryle,

    Thanks again for your help! I was sure I checked that checkbox, but maybe not!

    Anyway, I followed the directions and modified my wp-config.php file. Now when I try to enter the site I get “This page isn’t working”. Seems like I really messed this up pretty good!

    What’s the next best suggestion?

    Thanks,
    Bill

    #564461
    Bryle Crodua
    Moderator

    Hi Bill,

    Can you please send us a copy of the migration log?
    You can find this log in the ‘wp-content/updraft’ directory of your new site location.
    Please copy the contents into an online tool (such as https://pastebin.com/ ) and post the link here.

    Regards,
    Bryle

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Migrate to localhost…’ is closed to new replies.