Error while running apachectl configtest - built httpd from source

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

Hello @smittynewton and welcome to the community..
Please show the output of

apachectl -t

and

apachectl -t -D DUMP_VHOSTS

So we can better help you. Your domain name would be beneficial also.

3 Likes

Hey @Rip,

Thanks for your help, the output is below.

apachectl -t

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.

Domain: dogebonk.date

2 Likes

OK so try this:

apache2ctl -t -D DUMP_VHOSTS
3 Likes

Command not found. Amazon Linux is CentOS based so it uses httpd not apache or apache2

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.

4 Likes
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
4 Likes

Alright I'm reinstalling I'll come back when I'm finished. Thank you both.

1 Like

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]

4 Likes

Okay so I messed up something in the process, reinstalled, and it installed cert flawlessly. Thanks! Be safe out there.

3 Likes

It is issued, but won't install.

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.

With whatever apachectl (or httpd) command do

sudo httpd -t -D DUMP_MODULES
4 Likes

Lol I'm stupid I had to enable mod_ssl in httpd my bad bro. Thanks again. Peace and power to you.

3 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.