I run a website based on a Wordpress AWS EC2 instance installed via Bitnami, and up till now it has worked perfectly. I've been using Cloudflare Flexible dedicated SSL, which has been working fine, however I ran into some issues with a few "mixed use" errors causing some content not to load.
I figured it might help to "upgrade" to Cloudflare Full SSL, which required me to install an SSL certificate on the server. I therefore followed this guide on how to "Generate And Install A Let's Encrypt SSL Certificate For A Bitnami Application":
However, along the way, errors started to occur.
I executed the following lines:
sudo lego --email="EMAIL-ADDRESS" --domains="DOMAIN" --domains="www.DOMAIN" --path="/etc/lego" run
sudo mv /opt/bitnami/apache2/conf/server.crt /opt/bitnami/apache2/conf/server.crt.old
sudo mv /opt/bitnami/apache2/conf/server.key /opt/bitnami/apache2/conf/server.key.old
sudo mv /opt/bitnami/apache2/conf/server.csr /opt/bitnami/apache2/conf/server.csr.old
sudo ln -s /etc/lego/certificates/DOMAIN.key /opt/bitnami/apache2/conf/server.key
sudo ln -s /etc/lego/certificates/DOMAIN.crt /opt/bitnami/apache2/conf/server.crt
sudo chown root:root /opt/bitnami/apache2/conf/server*
sudo chmod 600 /opt/bitnami/apache2/conf/server*
Afterwards, my site was just down. I tried to restart all bitnami services using:
sudo /opt/bitnami/ctlscript.sh start
No luck... When i run a status check i get the following output:
$ sudo /opt/bitnami/ctlscript.sh status
php-fpm already running
apache not running
mysql already running
What did i do wrong and how can I rectify my mistakes? I really just want to undo everything and get back to how everything worked before..
I would greatly appreciate any help!