Can't find Apache executable apache2ctl

Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. crt.sh | example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

My domain is:nzsteampunk.co.nz

I ran this command:sudo certbot --apache

It produced this output:The apache plugin is not working; there may be problems with your existing configuration.
The error was: NoInstallationError('Cannot find Apache executable apache2ctl')

My web server is (include version):

The operating system my web server runs on is (include version):Debian GNU/Linux

My hosting provider, if applicable, is:AWS Lightsail wordpress

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):PuTTY

The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot):Just installed today 21 Feb 2021 - I was changing from deprecated certbot-auto to new process using snap from https://certbot.eff.org

1 Like

Are you using a Bitnami server image?

2 Likes

Yes. Sorry I forgot to mention that it is Bitnami

2 Likes

Bitnami has its own instructions for securing websites with SSL certificates: Generate and Install a Let's Encrypt SSL Certificate for a Bitnami Application.

Since you're using Apache, it sounds like using bncert-tool is what Bitnami recommends, rather than Certbot.

2 Likes

Actually - I was removing deprecated certtbot-auto (which I had used successfully for years) and replacing with classic cerbot by using the following commands provided by https://certbot.eff.org website.

$ sudo rm /usr/local/bin/certbot-auto

$ sudo snap install --classic certbot

$ sudo ln -s /snap/bin/certbot /usr/bin/certbot

$ sudo certbot --apache

Are you saying this was wrong and I should not use certbot anymore?

1 Like

Yes I am using Bitnami Stack.

I was removing deprecated certtbot-auto (which I had used successfully for years) and replacing with classic cerbot by using the following commands provided by https://certbot.eff.org website.

1 Like

certbot-auto --apache wouldn't have worked on a Bitnami server either.

If you did somehow use certbot-auto on Bitnami before, it would have been through some other invocation, other than --apache.

If you can remember how you did it, you are welcome to continue using Certbot on your server, in the exact same way as you used certbot-auto. They work identically, at the end of the day.

If you have any .conf files in /etc/letsencrypt/renewal/ directory, those might provide a hint as to how you were using Certbot previously.

1 Like

I'm very confused now.

This article How To Enable Let's Encrypt SSL Certificate On AWS LightSail Server dated 21 Dec 2020 says to install certbot-auto but I thought that it was deprecated?

1 Like

Hello :slightly_smiling_face:

You may find this recent topic useful where I helped another Bitnami user:

2 Likes

Thanks. I will follow this process. But will the commands I have already entred (see below) conflict with this new process? If so do I need to uninstall or delete anything? If so how?

$ sudo rm /usr/local/bin/certbot-auto

$ sudo snap install --classic certbot

$ sudo ln -s /snap/bin/certbot /usr/bin/certbot

$ sudo certbot --apache

1 Like

They should not interfere, but are also now made unnecessary.
So, you can remove the snap version of certbot and the symlink.

1 Like

Thanks for everyones help. I was successfully once I followed this link:

https://docs.bitnami.com/general/how-to/generate-install-lets-encrypt-ssl/

4 Likes

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