wordpress : How to specify the cause "This site can’t be reached"

SamuraiBlue picture SamuraiBlue · Aug 20, 2018 · Viewed 10.6k times · Source

I have used Let's Encrypt for WordPress on AWS Lightsail.

I found that it was expired because I didn't renew it.

So I tried the Let's encrypt to renew, the bitnami guide https://docs.bitnami.com/aws/how-to/generate-install-lets-encrypt-ssl/ and Cloudflare https://www.cloudflare.com/ to apply SSL.

But my site is not displayed after trying various things.

When I try to access my site in chrome, the following message is displayed.

This site can’t be reached
mydomain.com refused to connect.

Try:
- Checking the connection
- Checking the proxy and the firewall

ERR_CONNECTION_REFUSE

I tried https://, https://www, http:// and http://www, but the same error message was displayed in chrome.

Similar message is displayed in Internet Explorer when I access my site.

When I tried to access with public IP, such as 54.249.xxx.xxx, the result is the same. (This site can’t be reached)

I also checked /opt/bitnami/apache2/logs.

There are some such as error_log-20180dd.gz files in /opt/bitnami/apache2/logs.

But I don't know which message is useful to solve the problem.

What should I check at the beginning? Which log should I check?

It would be appreciated if you could give me some hint.

Answer

David.J picture David.J · Aug 20, 2018

Can you first enable the WordPress debug to output errors?

Open wp-config.php and change this:

define( 'WP_DEBUG', false );

To this:

define( 'WP_DEBUG', true );

Ref: https://codex.wordpress.org/Editing_wp-config.php#Debug

What errors does that display for you?