Report this

What is the reason for this report?

WordPress site and WP admin not reachable.

Posted on April 28, 2020

I have setup a Digital Ocean droplet with Wordpress (Ubuntu WordPress on 18.04). I configured the WordPress using SSH and also configured Letsencrypt certificates using Certbot while doing so. I also configured my wp admin username and password.

I also changed the name servers at my Domain name provider and pointed to Digital Ocean name servers where I added A record and also A record for www subdomain. If I ping my domain name it is pinging to right IP and also when I check using whatsmydns.net it shows that it is configured correctly.

I could easily access the mydomain/wp-admin and login. I changed the theme and made some layput changes. Then in Settings>General I changed the URLs to https:mydomain.com for site and wp/admin.

Now when I try to reach the site or wp-admin through web browser, I just get an error of This site can’t be reached MYDOMAIN.com refused to connect.

I added following to the wp-config file and restarted apache but still getting same error.

define ('WP_HOME','http://mydomain.com');
define ('WP_SITEURL','http://mydomain.com');

note: wherever I have mentioned MYDOMAIN in question, I have used actual domain in settings and files.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.