Keywords: WordPress Multisite - Google Cloud Platform - Technical issue - Secure Connections (SSL/HTTPS)
Description:
I have bitnami multisite, originally launched from GCP deployment manager, using Apache.
I followed the instructions to install a let's encrypt SSL on my Bitnami installation. Ideally I would have an SSL for the whole Multisite, ideally automatically for each new domain.
When I followed the instruction
sudo mv /opt/bitnami/apache2/conf/server.csr /opt/bitnami/apache2/conf/server.csr.old
I received the error message
mv: cannot stat ‘/opt/bitnami/apache2/conf/server.crt’: No such file or directory
I then attempted again, but it didn't work.
I then received the error messages when trying to start everything again:
/opt/bitnami/mysql/scripts/ctl.sh : mysql started at port 3306
/opt/bitnami/php/scripts/ctl.sh : php-fpm started
AH00526: Syntax error on line 46 of /opt/bitnami/apache2/conf/bitnami/bitnami.conf:
SSLCertificateFile: file '/opt/bitnami/apache2/conf/server.crt' does not exist or is empty
apache config test fails, aborting
since then, not much has worked, including attempting to start, stop and repeat the instructions on the let's encrypt guide (as above) always giving the error message:
mv: cannot stat ‘/opt/bitnami/apache2/conf/server.crt’: No such file or directory
or
AH00526: Syntax error on line 46 of /opt/bitnami/apache2/conf/bitnami/bitnami.conf:
SSLCertificateFile: file '/opt/bitnami/apache2/conf/server.crt' does not exist or is empty
apache config test fails, aborting
Now my website isn't working at all and I can't start it as HTTP, let alone with SSL.
outputs of the commands advised:
sudo ls -la /opt/bitnami/apache2/conf/
total 288
drwxr-xr-x 5 bitnami root 4096 Aug 22 18:08 .
drwxr-xr-x 14 root root 4096 Nov 16 2017 ..
drwxr-xr-x 2 bitnami root 4096 Dec 6 2017 bitnami
-rw-r--r-- 1 root root 1212 May 16 23:14 cert.csr.old
-rw-r--r-- 1 bitnami root 289 Nov 16 2017 deflate.conf
drwxr-xr-x 2 bitnami root 4096 Nov 16 2017 extra
-rw-r--r-- 1 bitnami root 20092 Nov 16 2017 httpd.conf
-rw-r--r-- 1 bitnami root 13077 Nov 8 2017 magic
-rw-r--r-- 1 bitnami root 60847 Nov 8 2017 mime.types
-rw-r--r-- 1 bitnami root 7413 Aug 2 2012 modsecurity.conf
drwxr-xr-x 3 bitnami root 4096 Nov 16 2017 original
-rw-r--r-- 1 bitnami root 17301 Nov 16 2017 pagespeed.conf
-rw-r--r-- 1 bitnami root 120982 Nov 16 2017 pagespeed_libraries.conf
-rw-r--r-- 1 bitnami root 199 Nov 16 2017 php-fpm-apache.conf
-rw-r--r-- 1 bitnami root 1834 Nov 16 2017 privkey.pem
lrwxrwxrwx 1 root root 47 Aug 22 18:03 server.crt.old -> /etc/lego/certificates/smcreativedesign.com.crt
-rw------- 1 root root 899 Nov 16 2017 server.csr.old
lrwxrwxrwx 1 root root 47 Aug 22 18:03 server.key.old -> /etc/lego/certificates/smcreativedesign.com.key
-rw-r--r-- 1 bitnami root 203 Nov 16 2017 ssi.conf
and
sudo ls -la /etc/lego/
total 20
drwx------ 4 root root 4096 May 17 01:10 .
drwxr-xr-x 74 root root 4096 Aug 23 10:05 ..
drwx------ 4 root root 4096 Aug 22 17:49 accounts
drwx------ 2 root root 4096 May 17 10:39 certificates
-rw-r--r-- 1 bitnami root 222 May 17 01:14 renew-certificate.sh