Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. crt.sh | example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.
My domain is: private.com
I ran this command: sudo apachectl configtest
It produced this output:
Syntax error on line 225 of /etc/apache2/apache2.conf: Syntax error on line 2 of /etc/apache2/sites-enabled/ssl.private.com.conf: Could not open configuration file /etc/apache2/le_http_01_challenge_pre.conf: No such file or directory
Action 'configtest' failed.
The Apache error log may have more information.
My web server is (include version): apache2 v2.4.59
The operating system my web server runs on is (include version): Debian Bookworm
My hosting provider, if applicable, is: Self hosted
I can login to a root shell on my machine (yes or no, or I don't know): yes
I'm using a control panel to manage my site (no, or provide the name and version of the control panel): terminal window only
The version of my client is (e.g. output of certbot --version
or certbot-auto --version
if you're using Certbot): 2.1.0
I've seen this topic before, but don't know what the resolution is. When running:
sudo certbot --apache
My apache site conf files get loaded with this line:
Include /etc/apache2/le_http_01_challenge_pre.conf
But that file doesn't exist. So configtest fails as does restarting apache. I've removed that line from my conf files. I only have 2 files but that line was repeated in 10 places. I just don't get why this line is added for a file that doesn't exist. It breaks the configuration. This is a bug!