I am trying to set up Piwik to use HTTPS with a custom domain name. So far, I have successfully pointed a subdomain of mine (
foo.example.com) to the IP address of my EC2 instance using an
A record. Now I am trying to use the Certbot client on my EC2 instance to obtain a certificate for the subdomain and set up automatic renewal.
I used a Bitnami image from the AWS Marketplace to deploy Piwik on an EC2 instance. This image uses Apache 2.4.23 running on Ubuntu 14.04.3.
Currently, I am following the Certbot installation guide for Apache on Ubuntu 14.04. From the home directory, I ran the following commands:
chmod a+x certbot-auto
Installation succeeded, but when I try to run
./certbot-auto (with or without the
--apache flag), I get the following error message:
Failed to find apache2ctl in PATH: /opt/bitnami/sqlite/bin:/opt/bitnami/php/bin:/opt/bitnami/mysql/bin:/opt/bitnami/apache2/bin:/opt/bitnami/common/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
Certbot doesn't know how to automatically configure the web server on this system. However, it can still get a certificate for you. Please run "certbot-auto certonly" to do so. You'll need to manually configure your web server to use the resulting certificate.
I followed this suggestion from another post and tried creating a symlink from
/opt/bitnami/apache2/bin/apachectl, but that didn't help. I get the following error message:
The apache plugin is not working; there may be problems with your existing configuration.
The error was: NoInstallationError('Could not find configuration root',)
Is there anything else I should try in order to get this working?
Thanks for your help!