My wordpress website and wp-admin no longer loading after changing IP to URL

I decided to self host my existing wordpress website (it was previously hoste on Natro) so I set about purchasing a new computer to use as a server, got a dell server and I installed Ubuntu desktop 20.04 (because I find it difficult working with Ubuntu live server) i made my router IP static and also created a static IP for the server. then I installed LAMP on it and it was running. I created a database in the mysql using the same credentials on my existing website. I then proceeded to make a backup of my existing website using Duplicator Pro and installed the website on my new server. The website was up and runnning fine albeit with the IP address of my server. so I went to godaddy that manages my domain name and pointed my domain name to my router IP address. Then I proceeded to change my wordpress website IP to url for both site url and home page to my domain now.

When I did that… My website keeps loading for minutes and then shows A CONNECTION TIME OUT + SERVER TAKING TOO LONG TO RESPOND message without taking me to my website or my wp-admin dashboard anymore. Please help

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hi Oluwenzo, were you able to get it resolved?

Then I proceeded to change my wordpress website IP to url for both site url and home page to my domain now.

From what you describe, I think you’ll have to change the URL of the site from the IP to the domain name, IN the database as well.

Since you describe you’re not even able to access the site in the browser via the domain, you may want to use the WordPress Command Line tool (wp-cli)

So something like this via the command line

wp search-replace [OLD_URL] [NEW_URL] --all-tables