My domain is:5x44.cn
I ran this command:certbot --apache
It produced this output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
The apache plugin is not working; there may be problems with your existing configuration.
The error was: NoInstallationError('Could not find configuration root')
/var/log/letsencrypt/letsencrypt.log :
2021-06-28 16:01:31,956:DEBUG:urllib3.connectionpool:http://localhost:None "GET /v2/connections?snap=certbot&interface=content HTTP/1.1" 200 97
2021-06-28 16:01:33,524:DEBUG:certbot._internal.main:certbot version: 1.16.0
2021-06-28 16:01:33,524:DEBUG:certbot._internal.main:Location of certbot entry point: /snap/certbot/1201/bin/certbot
2021-06-28 16:01:33,524:DEBUG:certbot._internal.main:Arguments: ['--apache', '--preconfigured-renewal']
2021-06-28 16:01:33,524:DEBUG:certbot._internal.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#apache,PluginEntryPoint#manual,PluginEntryPoint#nginx,PluginEntryPoint#null,PluginEntryPoint#standalone,PluginEntryPoint#webroot)
2021-06-28 16:01:33,574:DEBUG:certbot._internal.log:Root logging level set at 30
2021-06-28 16:01:33,578:DEBUG:certbot._internal.plugins.selection:Requested authenticator apache and installer apache
2021-06-28 16:01:34,536:DEBUG:certbot_apache._internal.configurator:Apache version is 2.4.46
2021-06-28 16:01:34,937:DEBUG:certbot._internal.plugins.disco:No installation (PluginEntryPoint#apache): Could not find configuration root
Traceback (most recent call last):
File "/var/lib/snapd/snap/certbot/1201/lib/python3.8/site-packages/certbot/_internal/plugins/disco.py", line 158, in prepare
self._initialized.prepare() # type: ignore
File "/var/lib/snapd/snap/certbot/1201/lib/python3.8/site-packages/certbot_apache/_internal/configurator.py", line 366, in prepare
self.parser = self.get_parser()
File "/var/lib/snapd/snap/certbot/1201/lib/python3.8/site-packages/certbot_apache/_internal/override_centos.py", line 81, in get_parser
return CentOSParser(
File "/var/lib/snapd/snap/certbot/1201/lib/python3.8/site-packages/certbot_apache/_internal/override_centos.py", line 169, in init
super().init(*args, **kwargs)
File "/var/lib/snapd/snap/certbot/1201/lib/python3.8/site-packages/certbot_apache/_internal/parser.py", line 62, in init
self.loc = {"root": self._find_config_root()}
File "/var/lib/snapd/snap/certbot/1201/lib/python3.8/site-packages/certbot_apache/_internal/parser.py", line 914, in _find_config_root
raise errors.NoInstallationError("Could not find configuration root")
certbot.errors.NoInstallationError: Could not find configuration root
2021-06-28 16:01:34,946:DEBUG:certbot._internal.plugins.selection:No candidate plugin
2021-06-28 16:01:34,946:DEBUG:certbot._internal.plugins.selection:Selected authenticator None and installer None
My web server is (include version):
apache 2.4.46
The operating system my web server runs on is (include version):
LSB Version: :core-4.1-amd64:core-4.1-noarch
Distributor ID: CentOS
Description: CentOS Linux release 8.3.2011
Release: 8.3.2011
Codename: n/a
My hosting provider, if applicable, is:
Huawei Cloud ECS server
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.16.0