Apache plugin not working for Let's Encrypt

I’m trying to secure my CentOS 7 VPS with Let’s Encrypt. I’ve followed the guidelines in https://www.digitalocean.com/community/tutorials/how-to-secure-apache-with-let-s-encrypt-on-centos-7 . I’ve set up virtual hosts, installed server dependencies and the Let’s Encrypt client. But when I try to set up the SSL certificate with:
./letsencrypt-auto --apache -d balnium.com -d mail.balnium.com
I get the error:
The apache plugin is not working; there may be problems with your existing configuration. The error was: NoInstallationError()
The Apache Plugin for Let’s Encrypt is not working, but how do I make it work?

Could you check letsencrypt.log for more information? I.e., more details about what could be the problem with Apache.

Osiris, thank you for answering. The contents of that file are:

2016-08-17 18:50:44,316:DEBUG:certbot.main:Root logging level set at 30
2016-08-17 18:50:44,317:INFO:certbot.main:Saving debug log to /var/log/letsencrypt/letsencrypt.log
2016-08-17 18:50:44,317:DEBUG:certbot.main:certbot version: 0.8.1
2016-08-17 18:50:44,317:DEBUG:certbot.main:Arguments: ['--apache', '-d', 'balnium.com', '-d', 'www.balnium.com', '-d', 'mail.balnium.com']
2016-08-17 18:50:44,317:DEBUG:certbot.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#apache,PluginEntryPoint#webroot,PluginEntryPoint#null,PluginEntryPoint#manual,PluginEntryPoint#standalone)
2016-08-17 18:50:44,328:DEBUG:certbot.plugins.selection:Requested authenticator apache and installer apache
2016-08-17 18:50:44,360:DEBUG:certbot.plugins.disco:No installation (PluginEntryPoint#apache):
Traceback (most recent call last):
File "/root/.local/share/letsencrypt/lib/python2.7/site-packages/certbot/plugins/disco.py", line 105, in prepare
self._initialized.prepare()
File "/root/.local/share/letsencrypt/lib/python2.7/site-packages/certbot_apache/configurator.py", line 161, in prepare
raise errors.NoInstallationError
NoInstallationError
2016-08-17 18:50:44,362:DEBUG:certbot.plugins.selection:No candidate plugin
2016-08-17 18:50:44,362:DEBUG:certbot.plugins.selection:Selected authenticator None and installer None

Thanks

@Osiris Hi, does that help?

Not really I’m afraid…

Do you get any extra debug info when you run the letsencrypt-auto command with the extra options -vvv?

@Osiris This is what I get:

x Root logging level set at 0 x
x Root logging level set at 0 x
x Saving debug log to /var/log/letsencrypt/letsencrypt.log x
x Root logging level set at 0 x
x Saving debug log to /var/log/letsencrypt/letsencrypt.log x
x certbot version: 0.8.1 x
x Root logging level set at 0 x
x Saving debug log to /var/log/letsencrypt/letsencrypt.log x
x certbot version: 0.8.1 x
x Arguments: [’–apache’, ‘-vvv’, ‘-d’, ‘balnium.com’, ‘-d’, x
x ‘mail.balnium.com’] x
x Root logging level set at 0 x
x Saving debug log to /var/log/letsencrypt/letsencrypt.log x
x certbot version: 0.8.1 x
x Arguments: [’–apache’, ‘-vvv’, ‘-d’, ‘balnium.com’, ‘-d’, x
x ‘mail.balnium.com’] x
x Discovered plugins: x
x PluginsRegistry(PluginEntryPoint#apache,PluginEntryPoint#webroot,Plu x
x ginEntryPoint#null,PluginEntryPoint#manual,PluginEntryPoint#standalo x
x ne) x
x Root logging level set at 0 x
x Saving debug log to /var/log/letsencrypt/letsencrypt.log x
x certbot version: 0.8.1 x
x Arguments: [’–apache’, ‘-vvv’, ‘-d’, ‘balnium.com’, ‘-d’, x
x ‘mail.balnium.com’] x
x Discovered plugins: x
x PluginsRegistry(PluginEntryPoint#apache,PluginEntryPoint#webroot,Plu x
x ginEntryPoint#null,PluginEntryPoint#manual,PluginEntryPoint#standalo x
x ne) x
x Requested authenticator apache and installer apache x
x Saving debug log to /var/log/letsencrypt/letsencrypt.log x
x certbot version: 0.8.1 x
x Arguments: [’–apache’, ‘-vvv’, ‘-d’, ‘balnium.com’, ‘-d’, x
x ‘mail.balnium.com’] x
x Discovered plugins: x
x PluginsRegistry(PluginEntryPoint#apache,PluginEntryPoint#webroot,Plu x
x ginEntryPoint#null,PluginEntryPoint#manual,PluginEntryPoint#standalo x
x ne) x
x Requested authenticator apache and installer apache x
x No installation (PluginEntryPoint#apache): x
x Traceback (most recent call last): x
x File x
x “/root/.local/share/letsencrypt/lib/python2.7/site-packages/certbot/ x
x plugins/disco.py”, line 105, in prepare x
x self.initialized.prepare() x
x File x
x "/root/.local/share/letsencrypt/lib/python2.7/site-packages/certbot
x
x apache/configurator.py", line 161, in prepare x
x raise errors.NoInstallationError x
x NoInstallationError x
x certbot version: 0.8.1 x
x Arguments: [’–apache’, ‘-vvv’, ‘-d’, ‘balnium.com’, ‘-d’, x
x ‘mail.balnium.com’] x
x Discovered plugins: x
x PluginsRegistry(PluginEntryPoint#apache,PluginEntryPoint#webroot,Plu x
x ginEntryPoint#null,PluginEntryPoint#manual,PluginEntryPoint#standalo x
x ne) x
x Requested authenticator apache and installer apache x
x No installation (PluginEntryPoint#apache): x
x Traceback (most recent call last): x
x File x
x “/root/.local/share/letsencrypt/lib/python2.7/site-packages/certbot/ x
x plugins/disco.py”, line 105, in prepare x
x self.initialized.prepare() x
x File x
x "/root/.local/share/letsencrypt/lib/python2.7/site-packages/certbot
x
x apache/configurator.py", line 161, in prepare x
x raise errors.NoInstallationError x
x NoInstallationError x
x No candidate plugin x
x Arguments: [’–apache’, ‘-vvv’, ‘-d’, ‘balnium.com’, ‘-d’, x
x ‘mail.balnium.com’] x
x Discovered plugins: x
x PluginsRegistry(PluginEntryPoint#apache,PluginEntryPoint#webroot,Plu x
x ginEntryPoint#null,PluginEntryPoint#manual,PluginEntryPoint#standalo x
x ne) x
x Requested authenticator apache and installer apache x
x No installation (PluginEntryPoint#apache): x
x Traceback (most recent call last): x
x File x
x “/root/.local/share/letsencrypt/lib/python2.7/site-packages/certbot/ x
x plugins/disco.py”, line 105, in prepare x
x self.initialized.prepare() x
x File x
x "/root/.local/share/letsencrypt/lib/python2.7/site-packages/certbot
x
x apache/configurator.py", line 161, in prepare x
x raise errors.NoInstallationError x
x NoInstallationError x
x No candidate plugin x
x Selected authenticator None and installer None x

And in the letsencrypt.log file now I have:

2016-08-24 19:57:12,844:DEBUG:certbot.main:Root logging level set at 0
2016-08-24 19:57:12,849:INFO:certbot.main:Saving debug log to /var/log/letsencrypt/letsencrypt.log
2016-08-24 19:57:12,854:DEBUG:certbot.main:certbot version: 0.8.1
2016-08-24 19:57:12,859:DEBUG:certbot.main:Arguments: [’–apache’, ‘-vvv’, ‘-d’, ‘balnium.com’, ‘-d’, ‘mail.balnium.com’]
2016-08-24 19:57:12,864:DEBUG:certbot.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#apache,PluginEntryPoint#webroot,PluginEntryPoint#null,PluginEntryPoint#manual,PluginEntryPoint#standalone)
2016-08-24 19:57:12,874:DEBUG:certbot.plugins.selection:Requested authenticator apache and installer apache
2016-08-24 19:57:12,896:DEBUG:certbot.plugins.disco:No installation (PluginEntryPoint#apache):
Traceback (most recent call last):
File “/root/.local/share/letsencrypt/lib/python2.7/site-packages/certbot/plugins/disco.py”, line 105, in prepare
self._initialized.prepare()
File “/root/.local/share/letsencrypt/lib/python2.7/site-packages/certbot_apache/configurator.py”, line 161, in prepare
raise errors.NoInstallationError
NoInstallationError
2016-08-24 19:57:12,903:DEBUG:certbot.plugins.selection:No candidate plugin
2016-08-24 19:57:12,908:DEBUG:certbot.plugins.selection:Selected authenticator None and installer None

Thank you

Is this a regular CentOS server with the distro-provided httpd package (i.e. what you get with yum install httpd), or are you using some sort of control panel (something like cPanel) or a custom version of apache? Any additional context you could add regarding your server might help.

Yes, I’m using Cpanel / WHM, and have Magento 1.9 installed. The server has a web server and DNS server. What else can I tell you?

If you have Cpanel/WHM I’d suggest using the latest version which has support for Let’s Encrypt built in, and you can automatically obtain and maintain certificates uptodate easily that way.

1 Like

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