I am having issues with trying to install a Let's encrypt certificate.
I am hoping someone can help me with the below error. I have tried searing the forums but with no luck to solving this issue.
I have seen on other posts that it could be because of docker?
My domain is: mpzcrm.tech
I ran this command: sudo certbot --apache
It produced this output: Saving debug log to /var/log/letsencrypt/letsencrypt.log
The apache plugin is not working; there may be problems with your existing configuration.
The error was: NoInstallationError('Cannot find Apache executable apache2ctl')
My web server is (include version): Apache
The operating system my web server runs on is : Ubuntu 24.04.3 LTS
That only works if Certbot is installed in the same container as Apache.
From the error that looks like it is not the case. You should look at using --webroot option instead and be sure you share the needed volumes accordingly
Setting up docker containers can be complicated. You won't be able to use the --installer flag either unless Certbot runs in the same container as your Apache
So does certbot, that's not the issue. Automating the installation in another container is the problem. That always relied on some hacky workarounds unless someone actually went and implemented proper dockerd hooks for either acme client.