I recently ran a certbot command using --webroot on a server. Everything worked fine for 8+ hours.
This morning my frontend went down. Upon investigation I discovered that the apache2 service was down. It was masked for some reason so I unmasked it. It restarted but did not work. I tried to run a configtest but apache2ctl was not found. I ran sudo apt install apache2. Now everything is working again.
However I need to figure out the root cause of this issue and I cannot find anything in the logs or from searching. My guess is this was caused by certbot but I need to confirm that. Does anyone have any insight here?
Ubuntu 18, apache2, certbot via snap
Thank you