I’m very new at this so I apologize ahead of time if what I’m saying doesn’t make sense and is too long.
The short version is that my certificate showed that it had expired even though I had renewed it a few weeks ago. I tried to renew it again and now am receiving the following error:
Syntax error on line 562 of /opt/bitnami/apache2/conf/httpd.conf: Syntax error on line 13 of /opt/bitnami/apache2/conf/bitnami/bitnami.conf: Expected but saw
How can I fix this?
The longer version is that I renewed my certificate about three weeks ago, but today I couldn’t connect to my website because my browser said the certificate had expired yesterday (the original expiration day). I walked through the renewal process again figuring I had screwed something up earlier. Partway through the process, though, I received this notice in Bitnami:
You have an existing certificate that has exactly the same domains or certificate name you
requested and isn’t close to expiry.
(ref: /etc/letsencrypt/renewal/lighthousenextsteps.org.conf)
What would you like to do?
1: Keep the existing certificate for now
2: Renew & replace the cert (limit ~5 per 7 days)
Since I couldn’t get to my site because of an expired certificate, I opted to renew and replace the cert. Everything seemed to go fine until I realized that my site was completely down, not just showing an expired cert. I then again walked through the process in the Lightsail documentation (see below) only this time selecting to renew and replace the cert. Again no luck.
I just keep getting the syntax error Syntax error on line 562 of /opt/bitnami/apache2/conf/httpd.conf: Syntax error on line 13 of /opt/bitnami/apache2/conf/bitnami/bitnami.conf: Expected but saw
I don’t know what I did to royally mess things up, but I would greatly appreciate it if you could help me resolve this.
Thanks!
Dan
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. https://crt.sh/?q=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:lighthousenextsteps.org
I ran this command:https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-using-lets-encrypt-certificates-with-wordpress
It produced this output:Syntax error on line 562 of /opt/bitnami/apache2/conf/httpd.conf: Syntax error o
n line 13 of /opt/bitnami/apache2/conf/bitnami/bitnami.conf: Expected but sa
w
My web server is (include version):
The operating system my web server runs on is (include version):Linux
My hosting provider, if applicable, is:AWS Lightsail
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):0.31.0