I'm installing apache httpd from source because I need .wasm mod for a game I'm hosting. After installation I'm not able to run certbot. I get these errors below.
My domain is:
doge****.date
I ran this command:
sudo certbot --apache
It produced this output:
Error while running apachectl configtest.
httpd: Syntax error on line 67 of /etc/httpd/conf/httpd.conf: API module structure 'autht_core_module' in file /etc/httpd/modules/mod_autht_core.so is garbled - expected signature 41503234 but saw 41503235 - perhaps this is not an Apache module DSO, or was compiled for a different Apache version ?
Error while running apachectl configtest.
httpd: Syntax error on line 67 of /etc/httpd/conf/httpd.conf: API module structure 'autht_core_module' in file /etc/httpd/modules/mod_autht_core.so is garbled - expected signature 41503234 but saw 41503235 - perhaps this is not an Apache module DSO, or was compiled for a different Apache version ?
The apache plugin is not working; there may be problems with your existing configuration.
The error was: MisconfigurationError("Error while running apachectl configtest.\n\nhttpd: Syntax error on line 67 of /etc/httpd/conf/httpd.conf: API module structure 'autht_core_module' in file /etc/httpd/modules/mod_autht_core.so is garbled - expected signature 41503234 but saw 41503235 - perha ps this is not an Apache module DSO, or was compiled for a different Apache version?\n")
My web server is (include version):
Server version: Apache/2.4.56 (Amazon Linux)
Server built: Mar 15 2023 00:00:00
The operating system my web server runs on is (include version):
Amazon Linux 2023
My hosting provider, if applicable, is:
AWS
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):
certbot 2.6.0
httpd: Syntax error on line 67 of /etc/httpd/conf/httpd.conf: API module structure 'autht_core_module' in file /etc/httpd/modules/mod_autht_core.so is garbled - expected signature 41503234 but saw 41503235 - perhaps this is not an Apache module DSO, or was compiled for a different Apache version?
apachectl -t -D DUMP_VHOSTS
Passing arguments to httpd using apachectl is no longer supported.
You can only start/stop/restart httpd using this script.
To pass extra arguments to httpd, see the httpd.service(8)
man page.
The use of the --apache plug-in requires a working Apache system.
Yours is not setup correctly.
You need to resolve this error which has nothing to do with Let's Encrypt. Perhaps review the Apache docs or visit a forum for general Apache advice.
Once you have a successful result from this command you could try the Certbot command again. Also be sure to create a VirtualHost for your domain name.
To list all enabled virtual hosts on the web server, run the following command in a terminal.
# apache2ctl -S [On Debian/Ubuntu]
# apachectl -S [On CentOS/RHEL]
OR
# httpd -S
You should keep notes of everything you do.
[OR you may circle back to the same point you just came from without knowing why]
Hopefully you won't need the notes - and the problem will be gone [without explanation].
And hopefully you will need those notes - and the problem will have exposed itself along the way.
[this way you can fix it for good and maybe leave a hint for others that may follow your path]
Could not find ssl_module; not installing certificate.
But amazons mod_ssl is already installed?
Package mod_ssl-1:2.4.56-1.amzn2023.x86_64 is already installed.
Successfully received certificate.
Certificate is saved at: /etc/letsencrypt/live/www.dogebonk.date/fullchain.pem
Key is saved at: /etc/letsencrypt/live/www.dogebonk.date/privkey.pem
This certificate expires on 2023-12-26.
These files will be updated when the certificate renews.
Deploying certificate
Could not install certificate
NEXT STEPS:
- The certificate was saved, but could not be installed (installer: apache). After fixing the error shown below, try installing it again by running:
certbot install --cert-name www.dogebonk.date
- The certificate will need to be renewed before it expires. Certbot can automatically renew the certificate in the background, but you may need to take steps to enable that functionality. See https://certbot.org/renewal-setup for instructions.
Could not find ssl_module; not installing certificate.
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.