SSL Certificate Setup for WordPress on Google Cloud (Click-to-Deploy)

Published by admin on



How to install and configure free Let’s Encrypt SSL certificates for your WordPress website on Google Cloud Platform.

This tutorial assumes you’re using the Click-to-Deploy version of WordPress on Google Cloud compute engine. In this tutorial you’ll learn how to install the certificates, how to configure them, and how set them to auto-renew.

There is an updated version of this tutorial available here:

Before starting this tutorial, you should have completed the following two tutorials:

1) Setup WordPress on Google Cloud (Click-to-Deploy):

2) Transfer a Domain Name to Google Cloud Platform:

View the full tutorial with each command listed individually with images:

Check out the entire WordPress on Google Cloud series at:

Social Media:

Questions about cloud hosting? Join our Facebook community:

source


24 Comments

Mate SEO · June 26, 2018 at 6:35 pm

I am getting this error while reload the apache server…

Job for apache2.service failed. See 'systemctl status apache2.service' and 'journalctl -xn' for details.

Ajit Singh · June 26, 2018 at 6:35 pm

Hi,

I am getting following, what would be the issue? pls help

IMPORTANT NOTES:
– The following errors were reported by the server:
Domain: emiratesrepairs.ae
Type: connection
Detail: DNS problem: SERVFAIL looking up A for emiratesrepairs.ae
To fix these errors, please make sure that your domain name was
entered correctly and the DNS A/AAAA record(s) for that domain
contain(s) the right IP address. Additionally, please check that
your computer has a publicly routable IP address and that no
firewalls are preventing the server from communicating with the
client. If you're using the webroot plugin, you should also verify
that you are serving files from the webroot path you provided.
root@emiratesrepairs-vm:/tmp/certbot#

Nam Ta Xuan · June 26, 2018 at 6:35 pm

at last step in wordpress: when I change http to https, Then website can not run. Now, I can not login to admin wordpess. Please help.

Csherp · June 26, 2018 at 6:35 pm

hello one page zen, this error comes to me whenever I use sudo:

sudo: /etc/sudoers is owned by uid 1001, should be 0
sudo: no valid sudoers sources found, quitting
sudo: unable to initialize policy plugin

sahil jain · June 26, 2018 at 6:35 pm

my default-ssl.conf file appears to be empty
It doesn't have any thing in it. What should I do?
I also tried the updated version of the video but still getting the same result

vaghela bhavin · June 26, 2018 at 6:35 pm

Awesome tutorial. Literally for google cloud problem. I didn't search on google but I'm searching your https://www.onepagezen.com/ 😉 🙂

rashtimovani · June 26, 2018 at 6:35 pm

Nice and concise tutorial, works great! Thank you!

Redouane ELMEKKAOUI · June 26, 2018 at 6:35 pm

thanks a lot;
dont forget this cmd: a2enmod ssl
nice tuto

Yog Unites · June 26, 2018 at 6:35 pm

how to undo all this?

Constant Concepts · June 26, 2018 at 6:35 pm

Reading package lists… Done
Building dependency tree
Reading state information… Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
git-all : Depends: git (< 1:2.1.4-.) but 1:2.11.0-3~bpo8+1 is to be installed
Depends: git-arch but it is not going to be installed
Depends: git-cvs but it is not going to be installed
Depends: git-mediawiki but it is not going to be installed
Depends: git-svn but it is not going to be installed
Depends: git-email but it is not going to be installed
Depends: git-gui but it is not going to be installed
Depends: gitk but it is not going to be installed
Depends: gitweb but it is not going to be installed
Recommends: git-daemon-run but it is not going to be installed or
git-daemon-sysvinit but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

If you can help with this, it would be greatly appreciated!

Atsu Davoh · June 26, 2018 at 6:35 pm

Awesome. Thanks bro

Kailas Bedarkar · June 26, 2018 at 6:35 pm

How can I setup SSL for my Magento Site. Should I follow the same step OR is their any different steps for Magento Site. Kindly help me on this.

Dian Saputra · June 26, 2018 at 6:35 pm

Job for apache2.service failed. See 'systemctl status apache2.service' and 'journalctl -xn' for details
Help me fix it.

Guillermo Guzman · June 26, 2018 at 6:35 pm

Muy bien explicado bro.

samplenrack · June 26, 2018 at 6:35 pm

hey Leron, great tutorial. I' trying to adapt it for another app of bitnami hosted on google cloud : Mautic. What should adapt to make it work ? many thanks

Jose Andres Durand · June 26, 2018 at 6:35 pm

Thnks! it helped me a lot.

Niranjan Bhat · June 26, 2018 at 6:35 pm

Hi.. ! How to setup google cloud CDN for wordpress website ssl URL? I really liked your easy, quick & simple video tutorial & I don't understand others. Please make this video tutorial also. Thank you.

Monster TV · June 26, 2018 at 6:35 pm

Hi one paze zen thanks for the nice tutorials. I wanted to install Godaddy ssl certicate on Google cloud compute engine. I have bitnami WordPress installed on compute engine. I already have Godaddy ssl certificate. Two crt file. I have take help of Google docs for ssl certificate but now I am stuck. I didn't know how to Install on Google compute engine. Please help. The ssl resource codes are not help much

Monster TV · June 26, 2018 at 6:35 pm

Hey onepazezen really liked your videos for Google cloud compute engine. I saw this ssl video also. But I want to use Godaddy ssl for my website. I already created ssl certicate using some help from Google doc. But I am clueless how to. Install and configure it on Google cloud compute engine. As you are the master of cloud engine. Please help me with a video or step step by step guide with example.

alex dimitrevski · June 26, 2018 at 6:35 pm

I've done everything as in video, and certificates were created but my site is still http not https please help.

Steven Maas · June 26, 2018 at 6:35 pm

I'm running a bitnami multisite wordpress install. I was trying to configure using your instructions and ran into issues. I changed the url for site to

./certbot-auto certonly –webroot -w /opt/bitnami/apps/wordpress/htdocs/ -d DOMAIN

I noticed that the directory doesnt show the below files…

SSLCertificateFile "/etc/letsencrypt/live/DOMAIN/cert.pem"
SSLCertificateKeyFile "/etc/letsencrypt/live/DOMAIN/privkey.pem"
SSLCertificateChainFile "/etc/letsencrypt/live/DOMAIN/chain.pem"

Any suggestions?

jose norbey sanchez morales · June 26, 2018 at 6:35 pm

Amigo por favor me puedes ayudar a restablecer mi servicio de mi pagina que esta en google cloud thanks

jose norbey sanchez morales · June 26, 2018 at 6:35 pm

why a command that tells the server to check for certificate renewals two times per day?? minute 12:35 control R read file, J, W ???

HaliWho · June 26, 2018 at 6:35 pm

WARNING: The public SSH key file for gcloud does not exist.
WARNING: The private SSH key file for gcloud does not exist.
WARNING: You do not have an SSH key for gcloud.
WARNING: SSH keygen will be executed to generate a key.

my showing this …..please help

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

en_USEnglish
en_USEnglish
%d bloggers like this: