Domain not accessible after setting automatic renew certificate!

I’ve follow this DigitalOcean article on installing Let’s encrypt. All was working well till i’ve followed the guide in the part to setup cron job for automatic renew certificate.

What happened? What can i do to solve this? Website is not accessible anymore.


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

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.

Sorry, i’ve missed your reply. I’ve in the meantime restarted everything since I wanna to use nginx. Although i got the same issue. But this time i was able to solve it. I notice that in the tutorial mentions that we can ad ip or domain to the nginx default file, although providing ip, returns error with too many redirects. but using domain name, it works fine.

Hi @cpinho

So the website was working fine with the new certificate on https? Right up until you ran sudo crontab -e, add one line and exited?

Have you allowed port 443 thru your firewall?

Modifying your crontab shouldn’t do anything to Apache.

Can you post your crontab - run this:

sudo crontab -l

And post your Apache error log - run this:

tail -30 /var/log/apache/error.log

Please use the code-button in the comment editor.