My domain is: screensmith.biz (with 4 subdomains)
I ran this command: certbot --apache
It produced this output:
2022-10-23 06:22:29,885:DEBUG:urllib3.connectionpool:http://localhost:None "GET /v2/connections?snap=certbot&interface=content HTTP/1.1" 200 97
2022-10-23 06:22:30,815:DEBUG:certbot._internal.main:certbot version: 1.31.0
2022-10-23 06:22:30,815:DEBUG:certbot._internal.main:Location of certbot entry point: /snap/certbot/2414/bin/certbot
2022-10-23 06:22:30,815:DEBUG:certbot._internal.main:Arguments: ['--apache', '--preconfigured-renewal']
2022-10-23 06:22:30,815:DEBUG:certbot._internal.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#apache,PluginEntryPoint#manual,PluginEntryPoint#nginx,PluginEntryPoint#null,PluginEntryPoint#standalone,PluginEntryPoint#webroot)
2022-10-23 06:22:30,833:DEBUG:certbot._internal.log:Root logging level set at 30
2022-10-23 06:22:30,834:DEBUG:certbot._internal.plugins.selection:Requested authenticator apache and installer apache
2022-10-23 06:22:31,262:DEBUG:certbot_apache._internal.configurator:Apache version is 2.4.53
2022-10-23 06:22:31,388:WARNING:certbot_apache._internal.apache_util:Error in checking parameter list:
2022-10-23 06:22:31,389:DEBUG:certbot._internal.plugins.disco:Misconfigured PluginEntryPoint#apache: Apache is unable to check whether or not the module is loaded because Apache is misconfigured.
Traceback (most recent call last):
File "/var/lib/snapd/snap/certbot/2414/lib/python3.8/site-packages/certbot/_internal/plugins/disco.py", line 160, in prepare
self._initialized.prepare()
File "/var/lib/snapd/snap/certbot/2414/lib/python3.8/site-packages/certbot_apache/_internal/configurator.py", line 368, in prepare
self.parser = self.get_parser()
File "/var/lib/snapd/snap/certbot/2414/lib/python3.8/site-packages/certbot_apache/_internal/override_centos.py", line 79, in get_parser
return CentOSParser(
File "/var/lib/snapd/snap/certbot/2414/lib/python3.8/site-packages/certbot_apache/_internal/override_centos.py", line 164, in __init__
super().__init__(*args, **kwargs)
File "/var/lib/snapd/snap/certbot/2414/lib/python3.8/site-packages/certbot_apache/_internal/parser.py", line 79, in __init__
self.update_runtime_variables()
File "/var/lib/snapd/snap/certbot/2414/lib/python3.8/site-packages/certbot_apache/_internal/override_centos.py", line 169, in update_runtime_variables
super().update_runtime_variables()
File "/var/lib/snapd/snap/certbot/2414/lib/python3.8/site-packages/certbot_apache/_internal/parser.py", line 299, in update_runtime_variables
self.update_defines()
File "/var/lib/snapd/snap/certbot/2414/lib/python3.8/site-packages/certbot_apache/_internal/parser.py", line 305, in update_defines
self.variables = apache_util.parse_defines(self.configurator.options.ctl)
File "/var/lib/snapd/snap/certbot/2414/lib/python3.8/site-packages/certbot_apache/_internal/apache_util.py", line 153, in parse_defines
matches = parse_from_subprocess(define_cmd, r"Define: ([^ \n]*)")
File "/var/lib/snapd/snap/certbot/2414/lib/python3.8/site-packages/certbot_apache/_internal/apache_util.py", line 208, in parse_from_subprocess
stdout = _get_runtime_cfg(command)
File "/var/lib/snapd/snap/certbot/2414/lib/python3.8/site-packages/certbot_apache/_internal/apache_util.py", line 241, in _get_runtime_cfg
raise errors.MisconfigurationError(
certbot.errors.MisconfigurationError: Apache is unable to check whether or not the module is loaded because Apache is misconfigured.
2022-10-23 06:22:31,406:DEBUG:certbot._internal.plugins.selection:Single candidate plugin: * apache
Description: Apache Web Server plugin
Interfaces: Installer, Authenticator, Plugin
Entry point: apache = certbot_apache._internal.entrypoint:ENTRYPOINT
Initialized: <certbot_apache._internal.override_centos.CentOSConfigurator object at 0x7fb10326dfa0>
Prep: Apache is unable to check whether or not the module is loaded because Apache is misconfigured.
My web server is (include version): Apache 2.4.53
The operating system my web server runs on is (include version): CentOS Stream 9
My hosting provider, if applicable, is: Ionos, if it matters. The server runs on an unmanaged (e.g., "self-managed") VPS with fairly scant resources.
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 1.31.0
Additional info: This is a VPS that I'm free to reinstall. But my project is in limbo until I get SSL working, since I can't install some of the other tools I'd use otherwise (for example: logging in is simply not wise).
The subdomains are served as virtual hosts, and there isn't a suitable configuration that gets me all the way through the process.
Even a certbot certonly
complains about Apache being misconfigured.
I did get a little farther with certbot --apache-ctl httpd --apache
but ultimately it failed because it's trying to run httpd configtest
rather than the correct verstion of that: httpd -t
which runs a syntax check on the files.
If I have to start over from a new install on a fresh ISO from the core distro, that's possible.