# Can't find Apache executable apache2ctl

**URL:** <https://community.letsencrypt.org/t/cant-find-apache-executable-apache2ctl/145765>\
**Category:** Help\
**Created:** [February 20, 2021, 8:40pm UTC](https://community.letsencrypt.org/t/cant-find-apache-executable-apache2ctl/145765 "2021-02-20T20:40:03Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![muz](https://avatars.discourse-cdn.com/v4/letter/m/bc8723/32.png) [@muz](https://community.letsencrypt.org/u/muz)\
**Post date:** [February 20, 2021, 8:40pm UTC](https://community.letsencrypt.org/t/cant-find-apache-executable-apache2ctl/145765/1 "2021-02-20T20:40:03Z")

</div>

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](https://crt.sh/?q=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](https://certbot.eff.org)

---

<div class="post-metadata">

**Author:** ![\_az](https://avatars.discourse-cdn.com/v4/letter/_/22d042/32.png) [@\_az](https://community.letsencrypt.org/u/_az)\
**Post date:** [February 20, 2021, 8:43pm UTC](https://community.letsencrypt.org/t/cant-find-apache-executable-apache2ctl/145765/2 "2021-02-20T20:43:55Z")

</div>

> [@muz](#):
>
> AWS Lightsail wordpress

Are you using a Bitnami server image?

---

<div class="post-metadata">

**Author:** ![muz](https://avatars.discourse-cdn.com/v4/letter/m/bc8723/32.png) [@muz](https://community.letsencrypt.org/u/muz)\
**Post date:** [February 20, 2021, 9:46pm UTC](https://community.letsencrypt.org/t/cant-find-apache-executable-apache2ctl/145765/4 "2021-02-20T21:46:04Z")

</div>

Yes. Sorry I forgot to mention that it is Bitnami

---

<div class="post-metadata">

**Author:** ![\_az](https://avatars.discourse-cdn.com/v4/letter/_/22d042/32.png) [@\_az](https://community.letsencrypt.org/u/_az)\
**Post date:** [February 20, 2021, 9:51pm UTC](https://community.letsencrypt.org/t/cant-find-apache-executable-apache2ctl/145765/5 "2021-02-20T21:51:33Z")

</div>

Bitnami has its own instructions for securing websites with SSL certificates: [Generate and Install a Let's Encrypt SSL Certificate for a Bitnami Application](https://docs.bitnami.com/general/how-to/generate-install-lets-encrypt-ssl/).

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

---

<div class="post-metadata">

**Author:** ![muz](https://avatars.discourse-cdn.com/v4/letter/m/bc8723/32.png) [@muz](https://community.letsencrypt.org/u/muz)\
**Post date:** [February 20, 2021, 10:33pm UTC](https://community.letsencrypt.org/t/cant-find-apache-executable-apache2ctl/145765/6 "2021-02-20T22:33:29Z")

</div>

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](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?

---

<div class="post-metadata">

**Author:** ![muz](https://avatars.discourse-cdn.com/v4/letter/m/bc8723/32.png) [@muz](https://community.letsencrypt.org/u/muz)\
**Post date:** [February 20, 2021, 10:38pm UTC](https://community.letsencrypt.org/t/cant-find-apache-executable-apache2ctl/145765/7 "2021-02-20T22:38:24Z")

</div>

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](https://certbot.eff.org/) website.

---

<div class="post-metadata">

**Author:** ![\_az](https://avatars.discourse-cdn.com/v4/letter/_/22d042/32.png) [@\_az](https://community.letsencrypt.org/u/_az)\
**Post date:** [February 20, 2021, 10:39pm UTC](https://community.letsencrypt.org/t/cant-find-apache-executable-apache2ctl/145765/8 "2021-02-20T22:39:14Z")

</div>

`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.

---

<div class="post-metadata">

**Author:** ![muz](https://avatars.discourse-cdn.com/v4/letter/m/bc8723/32.png) [@muz](https://community.letsencrypt.org/u/muz)\
**Post date:** [February 21, 2021, 12:32am UTC](https://community.letsencrypt.org/t/cant-find-apache-executable-apache2ctl/145765/9 "2021-02-21T00:32:05Z")

</div>

I'm very confused now.

This article [How To Enable Let's Encrypt SSL Certificate On AWS LightSail Server](https://metablogue.com/enable-lets-encrypt-ssl-aws-lightsail/) dated 21 Dec 2020 says to install certbot-auto but I thought that it was deprecated?

---

<div class="post-metadata">

**Author:** ![griffin](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/griffin/32/50204_2.png) [@griffin](https://community.letsencrypt.org/u/griffin)\
**Post date:** [February 21, 2021, 12:36am UTC](https://community.letsencrypt.org/t/cant-find-apache-executable-apache2ctl/145765/10 "2021-02-21T00:36:41Z")

</div>

Hello 🙂

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

> [@About Let's Encrypt Renewal](https://community.letsencrypt.org/t/about-lets-encrypt-renewal/145646):
>
> M…

---

<div class="post-metadata">

**Author:** ![muz](https://avatars.discourse-cdn.com/v4/letter/m/bc8723/32.png) [@muz](https://community.letsencrypt.org/u/muz)\
**Post date:** [February 21, 2021, 1:36am UTC](https://community.letsencrypt.org/t/cant-find-apache-executable-apache2ctl/145765/11 "2021-02-21T01:36:35Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![rg305](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/rg305/32/91314_2.png) [@rg305](https://community.letsencrypt.org/u/rg305)\
**Post date:** [February 21, 2021, 5:27am UTC](https://community.letsencrypt.org/t/cant-find-apache-executable-apache2ctl/145765/12 "2021-02-21T05:27:10Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![muz](https://avatars.discourse-cdn.com/v4/letter/m/bc8723/32.png) [@muz](https://community.letsencrypt.org/u/muz)\
**Post date:** [February 21, 2021, 11:31pm UTC](https://community.letsencrypt.org/t/cant-find-apache-executable-apache2ctl/145765/13 "2021-02-21T23:31:42Z")

</div>

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

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

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/letsencrypt/original/3X/c/a/ca6c06ea1ea201324bba7048c6841ce60236468d.png) [@system](https://community.letsencrypt.org/u/system)\
**Post date:** [March 23, 2021, 11:32pm UTC](https://community.letsencrypt.org/t/cant-find-apache-executable-apache2ctl/145765/14 "2021-03-23T23:32:02Z")

</div>

Closed on March 23, 2021, 11:32pm UTC

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