I used to have renewal problems too. What did I do?
- Switch to the root user
- Go to
- Long list files
- Use cat command or another one to view the contents of this specific file:
- Search the section [[webroot_map]] at the end of the file. If missing add it this way (using nano command or another for editing the file):
mydomain.com = /var/www/mydomain.com/public_html
www.mydomain.com = /var/www/mydomain.com/public_html
That should solve renew issues with letsencrypt.