- Newest
- Most votes
- Most comments
Based on your description, there are several potential issues causing your WordPress site to go offline intermittently:
-
Resource Limitations: Your AWS instance may be running out of resources (particularly memory), which is a common cause of WordPress sites becoming unresponsive. This is especially true if you're using a smaller AWS Lightsail or EC2 instance. When memory gets low, the database connection can fail, causing your site to become inaccessible.
-
PHP Version Issues: You mentioned your site is running on PHP 7.4.13, which is outdated and no longer receives security updates. The outdated PHP version could be contributing to stability issues, and upgrading to a recommended version (PHP 8.3) might help resolve some of these problems.
-
SSL Certificate Problems: The error "NET::ERR_CERT_VALIDITY_TOO_LONG" suggests there's an issue with your SSL certificate. This could be due to a misconfiguration between your AWS hosting and Cloudflare, possibly related to certificate validity periods that are too long for browsers to accept.
-
Database Connection Issues: The intermittent nature of the problem could indicate database connection failures, which are common when WordPress sites experience resource constraints.
Here are some recommended actions:
-
Upgrade Your Instance Resources: If you're using a small instance size, consider upgrading to a larger plan with more memory and CPU resources.
-
Update PHP: Follow through with the recommended PHP update to version 8.3, as this could improve stability and security.
-
Check SSL Configuration: Review your SSL certificate setup between AWS and Cloudflare. You may need to reissue your certificate or adjust your Cloudflare SSL settings.
-
Monitor Resource Usage: Set up monitoring for your instance to track CPU, memory, and disk usage to identify if resource constraints are causing the outages.
-
Review Plugins: Disable any unnecessary plugins that might be consuming excessive resources.
-
Check Server Logs: Review your server logs during outage periods to identify specific errors that might be causing the downtime.
If the issue persists after these steps, you might need to consider creating a new instance with fresh WordPress installation and migrating your content, especially if your current instance has accumulated configuration issues over time.
Sources
Wordpress website on Lightsail keeps dropping offline/unavailable | AWS re:Post
Lightsail/Wordpress site mysteriously down and inaccessible | AWS re:Post
Website not loading | AWS re:Post
Wordpress site missing | AWS re:Post
Hello,
just my two cents on certificate error.
The error which you are experiencing when opening the site in Safari and Chrome: "CERT_VALIDITY_TOO_LONG" is probably due to the fact that the validity period of the certificate is really too long. Safari and Chrome (along with Firefox) implemented maximal validity of the TLS/SSL certificates to 13 months (398 days). Have you tried Firefox as well? You should get same/similar error message. The best course of action on this is to check again how long is you certificate valid. You can again use sslshopper.com website for that. If the validity is really longer then 398 days, you will probably need to exchange you TLS/SSL certificate.
Best regards, Neven
Relevant content
- asked 2 years ago
- AWS OFFICIALUpdated a year ago

Thanks for this. I ran another SSL audit, this time with SSL Certificate Checker - Diagnostic Tool | DigiCert.com. It shows that the certificate matches (mysite.com), then lists three different certificates, and two of them have very long validation periods, six and five years.
Server Certificate Subject: mysite.com Valid from 27/May/2025 to 25/Aug/2025 Issuer WE1
Intermediate Certificate Subject: WE1 Valid from: 13/Dec/2023 to 20/Feb/2029 Issuer: GTS Root R4
Intermediate Certificate Subject: GTS Root R4 Valid from: 15/Nov/2023 to 28/Jan/2028 Issuer: GlobalSign Root CA
Does this make sense? Not sure what to do about these certificates, and how to adjust their dates. Any advice greatly appreciated.
Hello,
just as a heads-up, in the initial post, in the error message there is actual domain name mentioned. If this is the information which you consider not sharing, I would suggest to edit the original post and remove the actual website address.
Back to the problem. The two certificates which you mentioned, that have 5 and 6 years validity period, are so called intermediate and root certificates. For this case their validity period doesn't matter. On the certificate for the actual domain matters. In you case that certificate is OK, as well. I checked the access to your site on my end as well. In 3 different browsers (Safari, Firefox and Chrome) on 2 different devices. For me the site is opening normally, without any error. Did you maybe tried opening the website on some different device? Does the error persist there as well? If so, I would encourage you to contact the Cloudflare support for this particular problem, since it seems that the website is behind their service and the SSL/TLS certificate is issued by them as well.
Best regards, Neven