apache2: Syntax error on line 225 of /etc/apache2/apache2.conf: Syntax error on line 16 of /etc/apache2/sites-enabled/lab.addmoreroutes.com-https.conf: Could not open configuration file /etc/letsencrypt/options-ssl-apache.conf: No such file or directory
Action '-t -D DUMP_VHOSTS' failed.
The Apache error log may have more information.
My web server is (include version):
The operating system my web server runs on is (include version):
Linux Ubuntu 20.4 LTS
My hosting provider, if applicable, is:
N/A
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):
No
The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot):
The file would have been present when your Apache configuration was generated, although the suffix -https.conf is rather unusual and wasn't generated by Certbot. Who configured your Apache HTTPS configuration file?
root@eve-ng:~# apachectl -t -D DUMP_VHOSTS
apache2: Syntax error on line 225 of /etc/apache2/apache2.conf: Syntax error on line 15 of /etc/apache2/sites-enabled/lab.addmoreroutes.com-https.conf: Could not open configuration file /etc/letsencrypt/options-ssl-apache.conf: No such file or directory
Action '-t -D DUMP_VHOSTS' failed.
The Apache error log may have more information.
# This file contains important security parameters. If you modify this file
# manually, Certbot will be unable to automatically provide future security
# updates. Instead, Certbot will print and log an error message with a path to
# the up-to-date file that you will need to refer to when manually updating
# this file.
SSLEngine on
# Intermediate configuration, tweak to your needs
SSLProtocol all -SSLv2 -SSLv3 -TLSv1 -TLSv1.1
SSLCipherSuite ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384
SSLHonorCipherOrder off
SSLOptions +StrictRequire
# Add vhost name to log entries:
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\"" vhost_combined
LogFormat "%v %h %l %u %t \"%r\" %>s %b" vhost_common
Ok, it looks like you are trying to use a VirtualHost config like would have been created by the apache plug-in but you are now using the standalone.
So, a quick fix to get apache running again is to create the file rg305 showed just two posts ago. The rerun the apachectl -t -D DUMP_VHOSTS and show us what that says.
Also, instead of using blockquote use the </> symbol for code formatting. Or, just place 3 backticks before and after output. Will look nicer.
Great. I've run out of time to sort out your remaining items.
You should replace standalone. That is not great as it requires apache to be stopped to successfully renew. That makes it difficult to automate and stopping apache is not necessary. You can use the webroot authenticator with deploy-hook or even go back to using the apache plug-in.
There are also 2 renewal conf files in the /etc/letsencrypt and the other needs review.
that makes sense that it needs to be stopped to renew which explains the issues i have been running into. I am not aware on how to replace standalone with the 2 methods you mentioned.