Automating Let’s Encrypt renewal with post-hooks for WordPress

wordpresssslcertbotapacheops

Renewals should be boring.

⚠️ Test hooks in staging before relying on automation.

Example deploy hook

sudo systemctl reload apache2

Use reload rather than restart so existing connections stay up.

Health check

Replace with your site’s URL:

curl -I https://your-domain.com