Free SSL Certificate Setup for WordPress on Google Cloud (Bitnami) – One Page Zen

Free SSL Certificate Setup for WordPress on Google Cloud (Bitnami) – One Page Zen

In this fast-initiate tutorial it’s good to be taught to configure free, auto-renewing SSL certificates for WordPress web sites which could well be hosted on Google Cloud Platform compute engine the utilization of the Bitnami version of WordPress on Google Cloud Platform.

Having SSL Security on your website will increase your Google search ranking.

In the occasion you’re the utilization of the Click-to-Deploy version of WordPress on Google Cloud Platform, you will likely be able to be in a location to explore that SSL certificates tutorial here.

Sooner than getting started with this tutorial, you wish to salvage already:

  1. Installed WordPress on Google Cloud
  2. Arrange a Domain Title on your WordPress website
  3. Reserved a Static IP Address on your VM occasion.

So let’s derive started…

There are 9 steps in this tutorial:

ssl certificates wordpress on google cloud platform derive admission to menu
Dash to your Google Compute homepage and click on on the hamburger menu in the upper left-hand corner.
ssl certificates for wordpress on google cloud platform compute engine vm cases
Dash to your Compute Engine, then to VM cases to derive admission to your WordPress installation.
ssl certificates setup for wordpress on google cloud platform compute engine
As soon as inner your Compute Engine, click on on the SSH button to join to your WordPress installation.

After executing every of these instructions, you will likely be able to be in a location to either quit in the identical SSH window or exit and start a fresh one.

Expose: Instructions for making an try out the certificates auto-renew script had been moved here.

Crucial Look: The auto-renew configuration instructions outlined in this share are no longer marvelous. For updated instructions on configuring auto-renewal, click on here.
(It’s urged that you skip to step 6 and trust this tutorial first).

ssl certificates setup wordpress google cloud platform compute engine bitnami
In confide in program your certificates to robotically renew themselves, it’s good to even need to configure a crontab that will robotically renew the SSL certificates sooner than they expire.
sudo crontab -e 
ssl certificates setup wordpress google cloud platform compute engine bitnami
After getting into the crontab -e provide an explanation for, capture the textual divulge editor to utilize to invent the crontab. Nano (1) is the finest textual divulge editor to utilize.
1
ssl certificates setup wordpress google cloud click on to deploy
Now that you’ve created a fresh crontab file, scroll to the underside and paste the instructions listed below. The provide an explanation for will provide an explanation for Certbot to envision for renewals twice per day.
0 0 * * * ./certbot-auto renew --quiet --no-self-increase

0 12 * * * ./certbot-auto renew --quiet --no-self-increase

After adding this code, enter ctrl+o to attach adjustments, followed by ctrl+x to exit again to your personal dwelling disguise.

ssl certificates setup wordpress google cloud platform compute engine bitnami
Next, paste the next three-traces of code below the DocumentRoot line of the bitnami.conf file. This could provide an explanation for the server to always again your website’s pages with HTTPS encryption. Be sure you substitute 1pagezen.com along with your like arena title. (Update 03/08/2018: ‘permanent’ added to code to impress redirect as a 301 in its set up of 302).
ServerName www.1pagezen.com

ServerAlias 1pagezen.com
Redirect permanent / https://www.1pagezen.com/
ssl certificates setup wordpress google cloud platform compute engine bitnami
Next, use the down-arrow key to scroll down the page. Express a # label next to every of the 2 placeholder certificates, and paste the path to your three SSL certificates files as shown in the provide an explanation for below, making sure to substitute 1pagezen.com along with your like arena title.
SSLCertificateFile "/etc/letsencrypt/live/1pagezen.com/cert.pem"

SSLCertificateKeyFile "/etc/letsencrypt/live/1pagezen.com/privkey.pem"
SSLCertificateChainFile "/etc/letsencrypt/live/1pagezen.com/chain.pem"

After adding this code, enter ctrl+o to attach adjustments, followed by ctrl+x to exit again to your personal dwelling disguise.

Altering your website URLs by capability of Settings > General is disabled in the Bitnami version, so as to be able to need to substitute your URLs by enhancing your wp-config.php folder.

ssl certificates setup wordpress google cloud platform compute engine bitnami
In confide in start your wp-config.php file for boosting,
bustle the provide an explanation for below.
sudo nano /opt/bitnami/apps/wordpress/htdocs/wp-config.php
ssl certificates setup wordpress google cloud platform compute engine bitnami
Internal of your wp-config.php file, it’s good to need to substitute your SiteURL and HomeURL definitions as shown below.

REPLACE THIS:

elaborate('WP_SITEURL', 'http://' . $_SERVER['HTTP_HOST'] . '/');
elaborate('WP_HOME', 'http://' . $_SERVER['HTTP_HOST'] . '/');

WITH THIS:

elaborate('WP_HOME','https://www.1pagezen.com');
elaborate('WP_SITEURL','https://www.1pagezen.com');

Be sure you substitute 1pagezen with either the www. or non-www. version of your arena title – whichever your bewitch. To illustrate:


elaborate('WP_HOME', 'https://1pagezen.com');
elaborate('WP_SITEURL', 'https://1pagezen.com');

After adding this code, enter CTRL+o to attach adjustments, followed by CTRL+x to exit again to your personal dwelling disguise.

ssl certificates setup wordpress google cloud platform compute engine bitnami
In say on your certificates adjustments to salvage trust, it’s good to even need to restart you Apache server by getting into the provide an explanation for below.
sudo /opt/bitnami/ctlscript.sh restart apache

Now that it’s good to even salvage finished the tutorial, it is top to quiet configure your certificates to auto-renew the utilization of this tutorial. Moreover, in case your configuration will not be always no doubt working successfully, try the tutorial below to evaluate overall SSL errors and fix them.

configure ssl auto renew

ssl certificates errors on google cloud

Did it Work?

If your SSL certificates had been configured successfully, it’s good to explore that your website is being loaded with a green padlock icon.

To configure certificates auto-renewal, please explore the tutorial here.

In the occasion it’s good to even salvage any questions or comments, please put up them below!

Thanks,

signature

google cloud ftp setup filezilla
Manage WordPress Files on Google Cloud Platform

Leave a Reply

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

Scroll to top