Use the command the result was:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Error while running /opt/rh/httpd24/root/usr/sbin/apachectl configtest.
httpd: Syntax error on line 56 of /opt/rh/httpd24/root/etc/httpd/conf/httpd.conf: Syntax error on line 40 of /opt/rh/httpd24/root/etc/httpd/conf.modules.d/00-base.conf: Cannot load modules/mod_http2.so into server: libnghttp2-httpd24.so.14: cannot open shared object file: No such file or directory
The apache plugin is not working; there may be problems with your existing configuration.
The error was: MisconfigurationError(‘Error while running /opt/rh/httpd24/root/usr/sbin/apachectl configtest.\n\nhttpd: Syntax error on line 56 of /opt/rh/httpd24/root/etc/httpd/conf/httpd.conf: Syntax error on line 40 of /opt/rh/httpd24/root/etc/httpd/conf.modules.d/00-base.conf: Cannot load modules/mod_http2.so into server: libnghttp2-httpd24.so.14: cannot open shared object file: No such file or directory\n’,)
----------view letsencrypt/letsencrypt.log -----------
2018-10-05 08:37:58,507:DEBUG:certbot.main:certbot version: 0.27.1
2018-10-05 08:37:58,508:DEBUG:certbot.main:Arguments: [’–apache’, ‘–apache-server-root’, ‘/opt/rh/httpd24/root/etc/httpd’, ‘–apache-vhost-root’, ‘/opt/rh/httpd24/root/etc/httpd/conf.d’, ‘–apache-logs-root’, ‘/opt/rh/httpd24/root/var/log/httpd’, ‘–apache-challenge-location’, ‘/opt/rh/httpd24/root/etc/httpd’, ‘–apache-ctl’, ‘/opt/rh/httpd24/root/usr/sbin/apachectl’]
2018-10-05 08:37:58,508:DEBUG:certbot.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#apache,PluginEntryPoint#manual,PluginEntryPoint#nginx,PluginEntryPoint#null,PluginEntryPoint#standalone,PluginEntryPoint#webroot)
2018-10-05 08:37:58,533:DEBUG:certbot.log:Root logging level set at 20
2018-10-05 08:37:58,533:INFO:certbot.log:Saving debug log to /var/log/letsencrypt/letsencrypt.log
2018-10-05 08:37:58,535:DEBUG:certbot.plugins.selection:Requested authenticator apache and installer apache
2018-10-05 08:37:58,654:ERROR:certbot.util:Error while running /opt/rh/httpd24/root/usr/sbin/apachectl configtest.
httpd: Syntax error on line 56 of /opt/rh/httpd24/root/etc/httpd/conf/httpd.conf: Syntax error on line 40 of /opt/rh/httpd24/root/etc/httpd/conf.modules.d/00-base.conf: Cannot load modules/mod_http2.so into server: libnghttp2-httpd24.so.14: cannot open shared object file: No such file or directory
2018-10-05 08:37:58,655:DEBUG:certbot.plugins.disco:Misconfigured PluginEntryPoint#apache: Error while running /opt/rh/httpd24/root/usr/sbin/apachectl configtest.
httpd: Syntax error on line 56 of /opt/rh/httpd24/root/etc/httpd/conf/httpd.conf: Syntax error on line 40 of /opt/rh/httpd24/root/etc/httpd/conf.modules.d/00-base.conf: Cannot load modules/mod_http2.so into server: libnghttp2-httpd24.so.14: cannot open shared object file: No such file or directory
Traceback (most recent call last):
File “/opt/eff.org/certbot/venv/lib/python2.7/site-packages/certbot/plugins/disco.py”, line 132, in prepare
self._initialized.prepare()
File “/opt/eff.org/certbot/venv/lib/python2.7/site-packages/certbot_apache/configurator.py”, line 235, in prepare
self.config_test()
File “/opt/eff.org/certbot/venv/lib/python2.7/site-packages/certbot_apache/configurator.py”, line 2213, in config_test
raise errors.MisconfigurationError(str(err))
MisconfigurationError: Error while running /opt/rh/httpd24/root/usr/sbin/apachectl configtest.
httpd: Syntax error on line 56 of /opt/rh/httpd24/root/etc/httpd/conf/httpd.conf: Syntax error on line 40 of /opt/rh/httpd24/root/etc/httpd/conf.modules.d/00-base.conf: Cannot load modules/mod_http2.so into server: libnghttp2-httpd24.so.14: cannot open shared object file: No such file or directory
2018-10-05 08:37:58,657:DEBUG:certbot.plugins.selection:Single candidate plugin: * apache
Description: Apache Web Server plugin - Beta
Interfaces: IAuthenticator, IInstaller, IPlugin
Entry point: apache = certbot_apache.entrypoint:ENTRYPOINT
Initialized: <certbot_apache.override_centos.CentOSConfigurator object at 0x7ff3c76e0610>
Prep: Error while running /opt/rh/httpd24/root/usr/sbin/apachectl configtest.
httpd: Syntax error on line 56 of /opt/rh/httpd24/root/etc/httpd/conf/httpd.conf: Syntax error on line 40 of /opt/rh/httpd24/root/etc/httpd/conf.modules.d/00-base.conf: Cannot load modules/mod_http2.so into server: libnghttp2-httpd24.so.14: cannot open shared object file: No such file or directory
2018-10-05 08:37:58,658:DEBUG:certbot.plugins.selection:Selected authenticator None and installer None