'wordpress : How to specify the cause "This site can’t be reached"
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.
Solution 1:[1]
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?
Solution 2:[2]
You could try the following things:
- The SSL errors usually come in ssl_error.log. Try to find it.
- If in httpd.conf file, it is still listening to HTTP port. So try using HTTP URL.
- For https, try to create a test PHP file, upload in the root folder and just place following line in it: echo "HTTPS WITHOUT WORDPRESS WORKING FINE";
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | wbdlc |
Solution 2 | Noman |