Skip to content

Can't login Wordpress hosted on new Lightsail instance created from snapshot

0

I have done this zillions of times and this is the first time it failed. Here are my steps:

  1. create a new instance from a snapshot to use as a sandbox
  2. login to the Wordpress dashboard on the new instance with the new public IP address
  3. Make changes in the sandbox before deploying to prod. But this time, when I try to go to the new IP address, it directs me to the IP addr of the original instance. My suspicion is the Site URL in the Wordpress settings somehow didn't update to the new IP address by default like it always did before. How do I create a new Lightsail instance for Wordpress so the IP automatically updates to the new IP?

asked 2 years ago480 views

1 Answer
0

Hi,

Can you try rebooting the instance? Or try restarting the bitnami scripts directly using sudo /opt/bitnami/ctlscript.sh restart

That may help execute the scripts such that they reset the IP address correctly to the new one.

Thanks.

AWS
EXPERT

answered 2 years ago

  • I just tried rebooting from the console and from the bash command. Still doing the same thing, redirecting to the domain where the snapshot is originally created from.

  • If you create another new instance from the snapshot does the same issue reoccur? This is just to rule out there wasn't some random issue that affected this particular instance. . If it reoccurs even with the second new instance, then I suspect something in your website configuration files has the IP of the old instance hard-coded and there's no initialization time script in your application setup that auto-corrects those settings to current instance's values when the application initializes on the new instance.

  • I updated wp-config.php and it now works. Thanks so much for the suggestion!

  • Happy to help :)

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.