One Page Zen

Web Design. Simplified.

  • Tutorials
    • Google Cloud
    • Amazon Cloud
    • Microsoft Cloud
  • Start
  • Resources

Setup Free SSL for WordPress on Google Cloud (Bitnami) (Latest)

November 14, 2020 Leron Amin 126 Comments

FacebookTweetLinkedInEmail

In this quick-start tutorial you will learn how to configure free, auto-renewing SSL certificates for WordPress websites hosted on Google Cloud Platform compute engine using the Bitnami version of WordPress on Google Cloud Platform.

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

If you’re using the Click-to-Deploy version of WordPress on Google Cloud Platform, you can view that SSL certificate tutorial here.

Before getting started with this tutorial, you should have already:

  1. Installed WordPress on Google Cloud
  2. Set up a Domain Name for your website

There are 5 steps in this tutorial:

  • 1. Connect to WordPress via SSH
  • 2. Generate SSL Certificates
  • 3. Configure SSL Certificates
  • 4. Configure HTTPS Redirect
  • 5. Restart Apache Server

1. Connect to WordPress via SSH

ssl certificates wordpress on google cloud platform access menu
Go to your Google Compute homepage and click the hamburger menu in the upper left-hand corner.
ssl certificate for wordpress on google cloud platform compute engine vm instances
Navigate to Compute Engine, then to VM instances to access your WordPress installation.
ssl certificate setup for wordpress on google cloud platform compute engine
Once inside your Compute Engine, click on the SSH button to connect to your VM Instance.

2. Generate SSL Certificates

setup free ssl certificates wordpress on google cloud bitnami
Now that you’ve connected to your VM instance, the next step is to copy and paste the certificate issuing command into your terminal. Remember to replace YOURMAIL, YOURDOMAIN, and www.YOURDOMAIN with the correct values.

For example, if your email address is example@gmail.com and your domains are 1pagezen.com and www.1pagezen.com, then your certificate issuing command would look like this:

sudo /opt/bitnami/letsencrypt/scripts/generate-certificate.sh -m example@gmail.com -d 1pagezen.com -d www.1pagezen.com

3. Configure SSL Certificates

Now that you’ve entered the certificate issuing command, you will be prompted with a series of questions. For each of the three questions, press y and then press Enter.

4. Configure HTTPS Redirect

setup free ssl certificates wordpress on google cloud bitnami
Now that that the certificates have been configured, the next step is to configure a redirect in your bitnami.conf file in order to redirect all traffic to the HTTPS (secure) version of your website. To do this, copy and paste the command below in order to open the bitnami.conf file for editing.
sudo nano /opt/bitnami/apache2/conf/bitnami/bitnami.conf
setup free ssl certificates wordpress on google cloud bitnami
Now that you’ve opened the bitnami.conf file for editing, copy and paste the the three lines of code below, in the same location as shown in the picture (remember to replace 1pagezen.com with your own domain name). After editing the file, press CTRL+X then Y to save and exit the file.
RewriteEngine On
  
RewriteCond %{HTTPS} !=on
RewriteRule ^/(.*) https://www.1pagezen.com/$1 [R,L]

5. Restart Apache Server

setup free ssl certificates wordpress on google cloud bitnami
In order for the recent file changes to take effect, you must restart your Apache server. To do this, copy and paste the command below into your terminal.
sudo /opt/bitnami/ctlscript.sh restart apache

That’s it!

Now that you’ve configured free, auto-renewing SSL certificates for your website, you may also be interested in boosting your website’s performance by configuring Cloudflare CDN.

If you run into any issues with your certificates and want to verify that they’re configured properly, check out the SSL Checker tool. Also check out this tutorial on how to fix SSL errors.

If you have any questions or comments, please post them below!

Thanks,

signature

Up Next…

google cloud ftp setup filezilla
How to Fix SSL Errors for WordPress on Google Cloud
google cloud ftp setup filezilla
Setup Cloudflare CDN for WordPress on Google Cloud

Related Posts

  • How to Migrate WordPress to Google Cloud (Full Guide)
  • How To Remove Bitnami Corner Banner From WordPress on Google Cloud Platform
  • Increase 512MB Upload Limit for All-in-One WP Migration Plugin
  • SSL Certificate Setup for WordPress on Google Cloud (Click-to-Deploy)
  • Setup Free SSL for WordPress on Google Cloud (Click-to-Deploy) (Latest)
  • Manage WordPress Files on Google Cloud Platform
FacebookTweetLinkedInEmail

Filed Under: GCP WordPress, Google Cloud Platform Tagged With: bitnami, certbot, certbot-apache, compute engine, google cloud platform, letsencrypt, ssl, wordpress

Comments

  1. david says

    December 8, 2020 at 6:39 pm

    thank for this article, i have been a big help for me. i had an issue after configuring the certificate, where images from external urls didn’t load on pages(home,…). i solved the issue by Updating Domain URLs(as mentioned in the previous article). thanks

    Reply
    • Leron Amin says

      December 12, 2020 at 4:04 pm

      Thanks for the feedback David – I’m glad to hear that updating your domain URLs fixed the issue!

  2. Shubham Jain says

    November 12, 2020 at 4:32 am

    Hey, I followed this and it worked like a charm. Thanks. But, I’ve a major issue in which I want your help. I have mapped multiple domains to one IP via a plugin. Now, I thought that doing this method again and again I can get unlimited SSL certificates but on the 2nd turn only, it messed up. Both the sites gave notification before opening. Then I deleted the changes in bitnami.config and now it has removed SSL from both but when I try again, it shows there exists a certificate. Please help and tell me how can I add SSL certs to multiple domains mapped on a single IP (single WP Installation).

    P.S.: When doing it for the 2nd time, I put in the same e-mail ID. Just so you know!

    Reply
    • Leron Amin says

      November 12, 2020 at 3:22 pm

      Hi Shubham,

      The easiest way is to issue a Let’s Encrypt certificate and include all of your domains in the single certificate. There’s no need to manage multiple certificates if all of your domains are mapping to the same IP.

      Hope this helps and let me know if you have other questions,
      Joe

  3. Adolfs says

    September 22, 2020 at 2:26 am

    Thank you for a comprehensive tutorial.

    I have already had my free one-year SSL certificaten from my domain registrar. It seems a waste of resources if I don’t use it, at least until it expires. My question is how do I integrate it with my bitnami WordPress. I have already generated the SSL certificate before.

    Reply
    • Leron Amin says

      September 28, 2020 at 9:30 am

      Hi Adolf,

      I’d recommend forgetting about the one-year free certificate. SSL certificates can be easily obtained for free with Certbot, and you will spend many hours on configuration for something that is worth less than $10.

      Let me know if you have other questions,
      Joe

  4. Mark Askew says

    September 15, 2020 at 3:29 am

    Done the SSL. Set the cronjob to renew. Seemed like all was good. Now the ssl has expired and when trying to do it again I am faced with the following problem:

    It seems there is a valid certificate in the web server configuration folder. Please renew that certificate or generate new ones manually
    Please check our documentation or open a ticket in our community forum, our team will be more than happy to help you!

    What to do? How does one delete the old certificate to create new? Tried new tool to see:

    Error: There has been an error.
    This installer requires root privileges. Please become superuser before
    executing the installer
    Press [Enter] to continue:

    Became superuser, used new tool and got an error on cronjob:

    Performing changes to your installation

    The Bitnami HTTPS Configuration Tool will perform any necessary actions to your
    Bitnami installation. This may take some time, please be patient.

    –
    Error: Error running crontab -u bitnami /tmp/cron20200915092455: new crontab
    file is missing newline before EOF, can’t install.
    Press [Enter] to continue:
    —————————————————————————-
    Some errors occurred

    The configuration was applied, but some of the changes could not be applied.
    Find the details below.

    The configuration report is shown below.

    Failed steps:
    * Removing cron entry

    Backup files:
    * /opt/bitnami/apache2/conf/httpd.conf.back.202009150923
    * /opt/bitnami/apache2/conf/bitnami/bitnami-apps-prefix.conf.back.202009150923
    * /opt/bitnami/apache2/conf/bitnami/bitnami.conf.back.202009150923

    Find more details in the log file:

    /tmp/bncert-202009150923.log

    restarted Apache and EPIC FAIL. PLEASE HELP! HOW TO DELETE AND RECREATE?

    Many thanks

    Reply
    • Leron Amin says

      September 27, 2020 at 7:20 pm

      Hi Mark,

      It looks like there is a solution to this issue as described here.

      Let me know if you have other questions,
      Joe

  5. Dino says

    August 10, 2020 at 10:52 pm

    Hi Joe

    Thank you very much for putting all of these tutorial, you are awesome! I have successfully follow this instruction and now I have a padlock on my website.

    However do I need to follow your instruction regarding auto renew? https://onepagezen.com/letsencrypt-auto-renew-certbot-apache/

    I already download cert-bot auto package as per above instruction (wget https://dl.eff.org/certbot-auto && chmod a+x certbot-auto) but I can’t move the package.

    Reply
    • Leron Amin says

      August 26, 2020 at 10:02 pm

      Hi Dino,

      With this latest tutorial, auto-renewal is configured automatically if you enter “Y” in step 3 of the tutorial (look towards the bottom of the screenshot in step 3, where the terminal prompts the user, “…You can now configure a cronjob to renew it every month. Do you want to proceed…”).

      Let me know if you have other questions,
      Joe

    • Dino says

      August 26, 2020 at 11:06 pm

      Hi Joe

      Thank you for your answer.
      I have successfully configure ssl on my site using your tutorial.

      Once again thank you for putting all of these tutorials.
      You are awesome!

      Cheers

    • Leron Amin says

      September 14, 2020 at 9:55 pm

      Thanks for the great feedback Dino!

  6. Kris V says

    August 2, 2020 at 2:42 am

    Hello, thanks for this video. While I am good with tech, this is not a strength of mine. I was watching your video and stuck after Step 2 when this is the error that pops. Can you please help me? Also, I had followed your video last time but I must have made some error because the automatic renewal did not work and my certificate expired on 31 July.

    “It seems there is a valid certificate in the web server configuration folder. Please renew that certificate or generate new ones manually
    . Please check our documentation or open a ticket in our community forum, our team will be more than happy to help you!”

    Reply
    • Leron Amin says

      September 28, 2020 at 10:37 am

      Hi Kris,

      The message is saying that you should renew your existing certificate instead of trying to issue a new one. Depending on your original configuration, try the following command:

      sudo certbot-auto renew

      If that doesn't work, follow the auto-renewal instructions in this section of the bitnami WordPress documentation.

      Let me know if you have other questions,
      Joe

  7. ALee says

    July 16, 2020 at 11:34 am

    Hello Sir,
    I am not expert of this programming, I just follow you and do all what you teach. You are my best teacher. But some time I got the error and I stuck. Then I have not solutions at prompt. Please help me. Now my site was unsecure, I try to use your method, and after that, all things gone. now I can not see my site live 🙁 Please help me sir.

    Reply
    • Leron Amin says

      August 2, 2020 at 7:25 pm

      Hi ALee,

      Thanks for the feedback – I’m glad the tutorials have been helpful to you.

      Were you able to get your site working again?

      Talk to you soon,
      Joe

  8. Jonathan Kweku says

    July 15, 2020 at 3:50 am

    This tutorial is quiet confusing, The first one states that this is the latest tutoril, so if i go by this tutorial it does not include the part of auto renewing the SSL cert through cron. i also noticed tyou had signed in the other tutorial which points to this one in june 2020 , and this one was edited in 2019.
    Question is which tutorial should we follow:
    https://onepagezen.com/free-ssl-certificates-wordpress-google-cloud-bitnami/

    or this:
    https://onepagezen.com/free-ssl-certificate-wordpress-google-cloud-bitnami/

    the s is missing from the certificates to lead to different urls

    Reply
    • Leron Amin says

      July 15, 2020 at 8:34 pm

      Hi Jonathan,

      Always follow the latest tutorials when configuring a new VM with the latest version of WordPress from the Google Cloud Marketplace. For old configurations, use the SSL tutorial that you used when you first configured SSL – don’t mix and match earlier and later versions of the tutorials.

      Regarding your auto-renewal question: In this version of the tutorial, you run a script which automatically configures a cronjob to handle the auto-renewal process. Look at the screenshot of the terminal in step 3 of the tutorial – the last prompt reads, “You can now configure a cronjob to renew it every month. Do you want to proceed? [y/n]”.

      Let me know if you have other questions,
      Joe

  9. Caleb Adekunle says

    June 22, 2020 at 8:06 pm

    So guys this method have been updated for bitnami i tried it out today
    after going to your compute engine

    and opening ssh

    just use this : sudo /opt/bitnami/bncert-tool

    then enter your domain names like say onepagezen www. onepagezen

    There is last part

    Where it says http to https you answer is (Yes)
    .onepagezen to http://www.onepagezen the answer is (yes)
    http://www.onepagezen to .onepage zen the answer is (No)

    After this enter your email

    press enter and your ssl will be created

    just wanted to help out because onepagezen hav really touched my live in a very good way thanks guys try it out

    Reply
    • Leron Amin says

      June 26, 2020 at 7:32 pm

      Awesome – thanks for the update Caleb!

  10. SEM Officer says

    June 16, 2020 at 6:59 am

    Hi Leron,

    Thank you for the great tutorial.

    https redirection code that you have provided is working well, but it is a 302 redirection. For SEO perspective, don’t you think we should use 301 redirection rather than 302?

    [R=301,L] rather than [R,L]

    Thanks

    Reply
    • Leron Amin says

      June 17, 2020 at 9:46 pm

      Yes – good catch! Thanks for sharing this.

  11. Cameron says

    June 7, 2020 at 2:36 pm

    Hi Leron,

    Great tutorial, thanks!

    I set it up 3 months ago. But I must have made a mistake. Because today is the SSL renewal and it doesn’t seem to work because the website is not accessible.

    On my IP address I get the “Apache2 Debian Default Page”

    “The configuration layout for an Apache2 web server installation on Debian systems is as follows:

    /etc/apache2/
    |– apache2.conf
    | `– ports.conf
    |– mods-enabled
    | |– *.load
    | `– *.conf
    |– conf-enabled
    | `– *.conf
    |– sites-enabled
    | `– *.conf

    “”

    Let me know if there is a fix for this?

    Thanks in advance!

    Reply
    • Leron Amin says

      June 7, 2020 at 7:16 pm

      Hi Cameron,

      The Apache default page displays when the sever isn’t running. Run the following command to start all services:

      sudo /opt/bitnami/ctlscript.sh start

      Let me know if you have questions,
      Joe

  12. Muzamil says

    May 30, 2020 at 11:36 pm

    When I installed the bitnami on Google Cloud and then later uploaded the backup again, I encountered a problem in which writing a htacces file is the only solution

    How To Make Htaccess File Writable

    Reply
    • Leron Amin says

      May 31, 2020 at 9:33 pm

      Hi Muzamil,

      If you need to manually update the file, then you can run the edit command with ‘sudo’ in front. For example:

      sudo nano /path/to/.htaccess

      If you need the file to be writable by another process on your VM, then you need to change the permissions of the file. I go over how to change file permissions in step 4 of this tutorial.

      Let me know if you have any questions,
      Joe

  13. duke lee says

    May 23, 2020 at 3:59 am

    Hi,

    I try to open bitnami Conf.

    It Shows

    Directory ‘/opt/bitnami/apache2/conf/bitnami’ does not exist

    What should I want to do

    Reply
    • Leron Amin says

      June 1, 2020 at 9:54 pm

      Hi Duke,

      What command did you run?

      Try navigating to /opt/bitnami/apache/conf/bitnami one level at a time, and see if that directory actually exists.

      Let me know you if you have questions,
      Joe

  14. Pakshal Lodha says

    May 20, 2020 at 4:07 am

    Hey Joe,

    I really enjoy all your videos and all were really helpful. This video in particular is great. For some reason my SSL Certificate has expired and I don’t know how to renew it. Is there a way you could guide me to renew my letsencrypt certificate? The certificates were working fine before they expired.

    Would appreciate help on this.

    Thanks

    Reply
    • Leron Amin says

      November 7, 2020 at 10:42 pm

      Hi Pakshal,

      I’d recommend following this guide for instructions on how to manually/automatically configure certificate renewal.

      Let me know if you have other questions,
      Joe

  15. Shahbaaz says

    May 12, 2020 at 10:24 pm

    The ssl certificate on my bitnami wordpress doesn’t renew automatically. After a few months, my website goes offline because I am using strict SSL settings on cloudflare. what should I do?

    Reply
    • Leron Amin says

      June 1, 2020 at 9:46 pm

      Hi Shabaaz,

      Follow these instructions for configuring the auto-renewal. For additional information, check out this Bitnami thread with instructions on how to renew the certificate after it’s already expired.

      Let me know if you have questions,
      Joe

  16. Marc says

    April 2, 2020 at 5:03 am

    Hi, Could you show me how to add free SSL for main domain and subdomain for wordpress multisite by bitnami cause it’s work for main domain only after I follow your instruction.
    Thanks in advance.

    Reply
    • Leron Amin says

      April 3, 2020 at 8:58 pm

      Hi Marc,

      Check out the instructions here to learn how to configure SSL for multiple domains on a single IP address.

      Let me know if you have questions,
      Joe

    • Ryan Ben Hassine says

      April 28, 2020 at 4:04 pm

      I didn”t understand how to get the certificate for subdomains it’s only working on www. I want to make a spesific payment and login link, please provide me a code or a link with the codes that I could use,
      thank you.

    • Leron Amin says

      May 11, 2020 at 10:01 pm

      Hi Ryan,

      Follow the instructions in the link that I provided. Configuring multiple subdomains for a WordPress Multisite instance requires a working knowledge of Apache server configuration. Try researching StackOverflow for possible answers if you’re unable to get it working.

      Good luck, and let me know if you have any general questions!
      Joe

  17. Juan Pablo Laclau says

    March 2, 2020 at 7:46 am

    I would add to this guide the following to prevent mixed errors:

    sudo nano /opt/bitnami/apps/wordpress/htdocs/wp-config.php

    REPLACE THIS:

    define(‘WP_SITEURL’, ‘http://’ . $_SERVER[‘HTTP_HOST’] . ‘/’);
    define(‘WP_HOME’, ‘http://’ . $_SERVER[‘HTTP_HOST’] . ‘/’);

    WITH THIS:

    define(‘WP_HOME’,’https://www.1pagezen.com’);
    define(‘WP_SITEURL’,’https://www.1pagezen.com’);

    sudo /opt/bitnami/ctlscript.sh restart apache

    Reply
    • Leron Amin says

      January 25, 2021 at 8:39 pm

      Excellent recommendation – thank you for sharing this Juan Pablo!

  18. Din Cheung says

    February 24, 2020 at 2:36 am

    How can i set the “WordPress General Setting” with https:// for WordPress Address (URL) & Site Address (URL)

    Reply
    • Leron Amin says

      February 24, 2020 at 10:54 am

      Hi Din,

      SSH into your instance, then open your wp-config.php file for editing by running the following command:

      sudo nano /opt/bitnami/apps/wordpress/htdocs/wp-config.php

      Now that you’ve opened your wp-config.php file for editing, replace these two lines of code:

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

      with

      
      define('WP_SITEURL', 'http://DOMAIN/'); 
      define('WP_HOME', 'http://DOMAIN/');

      Make sure to replace DOMAIN with your actual domain name (either the www. or non-www version, whichever you prefer for your site. Also, if you’ve configured SSL for your site, make sure to change http to https.

      Check out these instructions from Bitnami for additional information.

      Let me know if you have questions,
      Joe

  19. Nickie Oakwood says

    February 4, 2020 at 6:14 am

    Hi

    Is there a way to change the WordPress Address (URL) & Site Address (URL) to HTTPS as it not showing there fools lots of plugins that the site is not secure. Stripe for instance. AMP Plugin, the list goes on It seems bonkers that it doesn’t change it with everything we do to get there, then this issue. Those 2 fields contain a value therefore theyu must be editable somewhere, surely?

    Many thanks

    Reply
    • Leron Amin says

      February 4, 2020 at 3:09 pm

      Hi Nickie,

      You can assign values to WP_HOME and WP_SITEURL in your wp-config.php file.

      For Bitnami’s WordPress solution, the wp-config.php file is located here:

      /opt/bitnami/apps/wordpress/htdocs/wp-config.php

      Let me know if you have questions,
      Joe

  20. Nickie Oakwood says

    February 3, 2020 at 5:05 am

    Alright dude. So set this up and site is showing https. Only issue in the WP Admin I can’t change http to https in the site url like you can with Google Click to Deploy. When I upload an image it causes mixed content issue in media and padlock gone. Put said image on page and page padlock gone.

    The only wayu I can find around this is setting up WP Stateless and GCS Bucket (http or https Load Balancer if ofloading media to GCDN). I don’t want to have to do this as GCS costs and the end game is Cloudflare so seems pointless offloading media to GCDN if offloading site to Cloudflare. Just out of interest, if I offloaded media to GCS and the site to Cloudflare would images still be from GCDN amnd the rest of the site on Cloudflare or would it all be on Cloudflare, thus making GCDN a moot point? Like facing two mirrors to each other, where does it actually end.

    With Google Click to Deploy it was easier to set up as can change WP URL but have discovered that index.php is forced in to my urls i.e: rentmydrive.co/index.php/about I have googled the Hell out of it and checked that the rewrite is on .htaccess but I can not fix it. Changing permalinks to be rentmydrive.co/%postname returns a requested URL not found.

    I just feel like no matter where I turn ‘ANOTHER’ issue arises.

    Any advice on the above truly appreciated.

    Many thanks

    Reply
    • Leron Amin says

      February 4, 2020 at 2:30 pm

      Hi Nickie,

      You shouldn’t have to configure a rewrite rule. There may be some cached settings that are causing the permalink issue (see my previous response).

      Cloudflare already acts as a CDN (plus some), so I don’t see a substantial benefit in also serving the images from Cloud Storage, given the added complexity (except for redundancy/failover – which would be a valid use case).

      Did you start this site from scratch or did you migrate it from another host? I have encountered issues in the past where the permalink structure breaks after completing the migration. Also, to confirm, are you using Bitnami or Click-to-deploy? If you’re using Click-to-deploy, can you verify that your directory structure is correct (default is var/www/html) – that’s another thing I can think of that could cause Permalink issues.

      Talk to you soon,
      Joe

  21. Jitendra Raju Asole says

    December 28, 2019 at 2:44 am

    I already have a SSL certificate issued from Positive SSL. How do I upload and enable it?

    Reply
    • Leron Amin says

      January 18, 2020 at 8:44 pm

      Hi Jitendra,

      You can upload the certificate directly to your instance using the Cloud Shell GUI – just follow the instructions here.

      To enable the certificates, you’d have to add them to your Apache configuration file – as is done in the Bitnami and Click-to-deploy SSL tutorials.

      Let me know if you have questions,
      Joe

  22. CALEB ADEKUNLE says

    December 24, 2019 at 3:48 pm

    Dear OnePageZen is me Caleb its been a while. So i deployed WordPress for Bitnami today and i got this warning message on Deployment Manager Page

    The template is incompatible with Python3. Please fix the following errors: Exception in software_status.py Traceback (most recent call last): return constructor[m](evaluation_context) File “software_status.py”, line 188, in GenerateConfig File “software_status.py”, line 161, in _Waiter File “software_status.py”, line 131, in _WaiterDependsOn AttributeError: module ‘types’ has no attribute ‘StringTypes’ Resource: software_status.py Resource: config https://cloud.google.com/deployment-manager/docs/migrate-to-python3

    CAN I CONTINUE TO WORK ON THE DEPLOYMENT OR IS THERE SOMETHING NEW THAT I AM SUPPOSE TO DO YOUR QUICK REPLY WILL BE MUCH APPRECIATED AND HAPPY HOLIDAYS CHEERS.

    Reply
    • Leron Amin says

      February 4, 2020 at 3:15 pm

      Hi Caleb,

      Great to here from you – and sorry for the late reply!

      I’ve come across that error before, and supposedly it’s just a warning. However, when I re-deployed the solution the error was gone.

      Take care and talk to you soon,
      Joe

    • Caleb adekunle says

      February 4, 2020 at 4:03 pm

      Thank you so much for your reply when I redeployed it was truly gone thank you

    • Leron Amin says

      February 5, 2020 at 11:54 am

      Awesome – glad to hear it!

  23. GOURAV says

    December 20, 2019 at 1:33 am

    Foloowing error was shown

    Unable to deactivate the authorization: https://acme-v02.a
    pi.letsencrypt.org/acme/authz-v3/1828409041

    Screenshot
    https://drive.google.com/file/d/1rsZpWJ6oOB94ZTEv-WmT8k4PTASg2lKd/view?usp=sharing

    Reply
    • Leron Amin says

      December 20, 2019 at 9:07 pm

      Hi Gourav,

      Were you able to get the issue resolved?

      If not, check out this resource for additional information pertaining to the error.

      Talk to you soon,
      Joe

  24. Sasan says

    December 18, 2019 at 2:02 pm

    Hi Joe,

    Thanks for the helpful resources that you are sharing.
    I cannot move forward from step 4. Configure HTTPS Redirect.

    When I enter the below command is showing the file is not exist.
    sudo nano /opt/bitnami/apache2/conf/bitnami/bitnami.conf

    Would you please help me to fix this.

    Thanks,
    Sasan

    Reply
    • Leron Amin says

      December 20, 2019 at 9:26 pm

      Hi Sasan,

      Were you able to get the issue resolved?

      If not, make sure you’re connected to your VM instance and not Google Cloud shell.

      Let me know if you have questions,
      Joe

    • Vesna says

      May 1, 2020 at 12:23 pm

      Check if your web server is nginx or apache. Bitnami says: “TIP: To find out if your Bitnami stack uses Apache or NGINX, check the output of the command sudo /opt/bitnami/ctlscript.sh status.”

      https://docs.bitnami.com/google/how-to/generate-install-lets-encrypt-ssl/#alternative-approach

  25. Petar Glisovic says

    December 7, 2019 at 5:02 pm

    Hi Joe, I’ve been watching your tutorials for a few days now and I’ve done all the steps well, but I couldn’t complete the SSL Certificate configuration, now I can’t access the website at all. 🙂 But I will persist until I do everything right, I am determined to learn everything about cloud services.

    I GET THIS ERROR:

    mapa_lazarevac@test-1-vm:~$ sudo /opt/bitnami/letsencrypt/scripts/generate-certificate.sh -m mapa.lazarevac@gmail.c
    om -d esamurai.net -d http://www.esamurai.net
    There is a new tool available for configuring HTTPS certificates, which is easier to use and includes new features
    such as redirections. Find it in the following path:
    /opt/bitnami/bncert-tool
    You can read more about it here:
    https://docs.bitnami.com/general/how-to/understand-bncert/
    Do you want to continue anyways? [y/N]: Y
    This tool will now stop the web server and configure the required SSL certificate. It will also start it again once
    finished.
    When supplying multiple domains, Lego creates a SAN (Subject Alternate Names) certificate which results in only one
    certificate
    under the email “mapa.lazarevac@gmail.com” valid for all domains you entered (“esamurai.net http://www.esamurai.net“).
    The first domain in your list (“esamurai.net”) will be added as the “CommonName” of the certificate and the rest wi
    ll be added
    as “DNSNames” to the SAN extension within the certificate
    Do you want to continue? [y/n]: Y
    Unmonitored apache
    Syntax OK
    /opt/bitnami/apache2/scripts/ctl.sh : apache not running
    2019/12/07 22:22:06 [INFO] [esamurai.net, http://www.esamurai.net] acme: Obtaining bundled SAN certificate
    2019/12/07 22:22:06 [INFO] [esamurai.net] AuthURL: https://acme-v02.api.letsencrypt.org/acme/authz-v3/1605951936
    2019/12/07 22:22:06 [INFO] [www.esamurai.net] AuthURL: https://acme-v02.api.letsencrypt.org/acme/authz-v3/160595193
    7
    2019/12/07 22:22:06 [INFO] [esamurai.net] acme: use tls-alpn-01 solver
    2019/12/07 22:22:06 [INFO] [www.esamurai.net] acme: use tls-alpn-01 solver
    2019/12/07 22:22:06 [INFO] [esamurai.net] acme: Trying to solve TLS-ALPN-01
    2019/12/07 22:22:21 [INFO] [www.esamurai.net] acme: Trying to solve TLS-ALPN-01
    2019/12/07 22:22:36 [INFO] Deactivating auth: https://acme-v02.api.letsencrypt.org/acme/authz-v3/1605951936
    2019/12/07 22:22:37 [INFO] Unable to deactivate the authorization: https://acme-v02.api.letsencrypt.org/acme/authz-
    v3/1605951936
    2019/12/07 22:22:37 [INFO] Deactivating auth: https://acme-v02.api.letsencrypt.org/acme/authz-v3/1605951937
    2019/12/07 22:22:37 [INFO] Unable to deactivate the authorization: https://acme-v02.api.letsencrypt.org/acme/authz-v3/1605951937
    2019/12/07 22:22:37 Could not obtain certificates:
    acme: Error -> One or more domains had a problem:
    [esamurai.net] acme: error: 400 :: urn:ietf:params:acme:error:connection :: Timeout during connect (likely firewall problem), url:
    [www.esamurai.net] acme: error: 400 :: urn:ietf:params:acme:error:connection :: Timeout during connect (likely firewall problem), url:

    Error: Something went wrong when running the following command:

    $ “$LEGO_BIN” –path “/opt/bitnami/letsencrypt” –tls –email=”${email}” ${domain_args} run

    Please check our documentation or open a ticket in our community forum, our team will be more than happy to help you!

    Documentation: https://docs.bitnami.com/
    Support: https://community.bitnami.com/

    We are going to try to recover the web server configuration now…

    Unmonitored apache
    Syntax OK
    /opt/bitnami/apache2/scripts/ctl.sh : apache not running
    Syntax OK
    (98)Address already in use: AH00073: make_sock: unable to listen for connections on address [::]:80
    (98)Address already in use: AH00073: make_sock: unable to listen for connections on address 0.0.0.0:80
    no listening sockets available, shutting down
    AH00015: Unable to open logs
    /opt/bitnami/apache2/scripts/ctl.sh : httpd could not be started
    Monitored apache
    mapa_lazarevac@test-1-vm:~$

    AND THIS HAPPENS WHEN I TRY CONFIGURATION WITH THE BNCERT TOOL:

    mapa_lazarevac@test-1-vm:/opt/bitnami$ sudo ./bncert-tool
    Warning: Custom redirections were detected in your web server configuration
    files. This tool will not be able to enable/disable redirections.
    Press [Enter] to continue:
    —————————————————————————-
    Welcome to the Bitnami HTTPS Configuration tool.
    —————————————————————————-
    Domains
    Please provide a valid space-separated list of domains for which you wish to
    configure your web server.
    Domain list []: esamurai.net http://www.esamurai.net
    Warning: The domain ‘esamurai.net’ resolves to a different IP address than the
    one detected for this machine, which is ‘35.246.207.251’. Please fix its DNS
    entries or remove it. For more info see:
    https://docs.bitnami.com/general/faq/configuration/configure-custom-domain/

    If you can help, thanks in advance. Best regards.

    Reply
    • Leron Amin says

      January 18, 2020 at 9:09 pm

      Hi Petar,

      Were you able to get the issue resolved?

      Was the website accessible via HTTP before starting with the certificate generating tool?

      Talk to you soon,
      Joe

  26. Lars says

    December 1, 2019 at 9:42 am

    I have a multisite Bitnami WordPress on GCP that I’m setting up to host several domains.

    The topic is – how to enable HTTPS for all of them.

    Curretly I’m setting up test sites two sited which we can call gcptst.domain.com and gcptst.otherdomain.net

    After running the folowing HTTPS worked fine on gcptxt.domain.com
    > sudo letsencrypt/scripts/generate-certificate.sh -m mymail@gmail.com -d gcptst.domain.com

    It worked fine.

    I then proceeded with
    > sudo letsencrypt/scripts/generate-certificate.sh -m mymail@gmail.com -d gcptst.otherdomain.net

    … which also worked fine but broke the setting for https://gcptxt.domain.com
    https://gcptxt.domain.com now shows the invalid certificate warning in the frowser with reference to that it’s a certificate for gcptst.otherdomain.net

    Happy go lucky I tried
    > sudo letsencrypt/scripts/generate-certificate.sh -m mymail@gmail.com -d gcptst.domain.com -d gcptst.otherdomain.net

    … and got:
    “It seems there is a valid certificate in the web server configuration folder. Please renew that certificate or generate new ones manually”

    Which is the solution to
    1) roll back from the situation I created
    2) to solve the need to have HTTPS on multiple domains on a multisite bitnami wordpress GCP installation

    PS: wouldn’t the following be a better rewrite rule?

    RewriteEngine On
    RewriteCond %{HTTPS} off
    RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [R=301,QSA,L]

    Reply
    • Leron Amin says

      January 18, 2020 at 9:06 pm

      Hi Lars,

      You should generate a single certificate for both of the domains in your Multisite configuration. For instance:

      sudo letsencrypt/scripts/generate-certificate.sh -m mymail@gmail.com -d gcptst.domain.net -d gcptst.otherdomain.net

      Bitnami has a very useful guide on SSL setup for multisite configurations, which you can view here.

      Let me know if you have questions,
      Joe

  27. Alex says

    November 26, 2019 at 8:51 pm

    Hi,

    The auto-renewing from my website was not good configured, so the certificate expired.
    I tried to renew it but it was not possible.
    Then I decide to delete the certificates and generate a new certificate, but now the /opt/bitnami/letsencrypt/scripts/generate-certificate.sh do not exist.
    I tried to install the Lego Client from: https://docs.bitnami.com/general/how-to/generate-install-lets-encrypt-ssl/
    but I get the message: Cannot write to ‘lego_v3.2.0_linux_amd64.tar.gz’ (No space left on device)

    Please help, how can I fix the script to generate the certificate?

    Reply
    • Leron Amin says

      December 12, 2019 at 11:17 pm

      Hi Alex,

      Sounds like your persistent disk is out of space. You should resize immediately or you’ll end up unable to write to your WordPress database.

      Here is the link for instructions o resizing persistent disks in Google Cloud. You can also connect to your VM instance and run the ‘df’ command to view the remaining disk space in the partition that’s running your WordPress instance.

      Hope this helps and let me know if you run into any issues.

      Thanks,
      Joe

  28. Lear says

    October 30, 2019 at 12:43 am

    Hi, thanks for the tutorial.

    I followed all steps but my website got “certificate common name mismatch ” warning when accessing. Any solution?

    Reply
    • Leron Amin says

      November 9, 2019 at 3:36 pm

      Hi Lear,

      A certificate mismatch error means that the domain-name listed in the certificate (i.e. the domain name the certificate was issued for), does not match the domain name for your website. This error typically occurs when users forget to change the domain name in the certificate issuing command.

      Hope this is helpful, and please reach out if you have any questions!
      Joe

  29. Joey says

    October 15, 2019 at 1:34 pm

    Hi!

    On GCS Bitnami WordPress pack.

    I have followed this tutorial to the point. Now I have had an email saying that the cert will be invalid in 19 days from Let Encrypt. I have also double check on a SSLchecker and it shows the same info.

    From what I understand this new scripts includes a “hidden” auto-renewal script in the end, but why do I get this message? When will the cert be renewed with the auto-renewal set up in the end of this tutorial?

    Thanks for a great site!

    Reply
    • Leron Amin says

      October 25, 2019 at 6:39 pm

      Hey Joey,

      If the certificate is showing an expiry date of 19 days, then it’s likely that auto-renewal isn’t working properly. You may want to check out the steps in this tutorial for additional information regarding testing certificate auto-renewal.

      Also – I looked at your domain, and it appears that the certificate is valid for ~90 days. Did you encounter an error with auto-renewal?

      Talk to you soon,
      Joe

    • Belkacem TALEB says

      October 28, 2019 at 6:32 am

      Hi Joe

      i had the same issue with this new script, i checked the auto renew, but looks like it did not work and now the certificate is expired

    • Leron Amin says

      November 9, 2019 at 3:32 pm

      Hi Belkacem,

      Did you try running the auto renew script?

      How do you know the certificate is expired – are you seeing a security warning in Chrome?

      Talk to you soon,
      Joe

  30. SUBHENDU BARAL says

    September 2, 2019 at 1:34 pm

    hi, sir my site is running in aws cloud, my Ip is not redirecting to my domain… please provide me solution…. i have followed all the steps mention i this post but still its not working

    Reply
    • Leron Amin says

      September 22, 2019 at 3:41 pm

      Hi Subhendu,

      Make sure that your networking settings are configured properly.

      Additionally, it can sometimes take a few hours (and sometimes days), for the IP to direct to your domain once it’s been configured.

      Hope this helps and let me know if you have questions,
      Joe

  31. Mohit says

    August 14, 2019 at 11:16 pm

    how to execute auto-renew of SSL certificate. i have done this process but it is valid only for 90 days. please share the process

    Reply
    • Leron Amin says

      August 16, 2019 at 6:17 pm

      Hi Mohit,

      If you followed the instructions outlined in the tutorial, then auto-renewal will be configured automatically.

      For more in-depth functionality, such as testing auto-renewal, check out this tutorial.

      Let me know if you have questions,
      Joe

    • Mohit says

      August 17, 2019 at 9:30 am

      Thanks, your article was so helpful

    • Philip Zauner says

      October 20, 2019 at 9:52 am

      Hi Joe,

      I received also warning letter from lets encryp telling me that my certificate is going to expire because it is reaching the 90 Days time limit.
      I am using WP with Bitnami and I followed the instructions outlined in this tutorial.
      Is the script renewing the certificate after 90 Days ?
      If not could you please point me into the right direction what went wrong with my configuration?

      Best regards,

    • Leron Amin says

      October 25, 2019 at 5:02 pm

      Hi Philip,

      The certificate expire every 90 days, and are set to auto-renew within 30 days before they are set to expire.

      If you check your domain through the SSL Checker website and it shows that the certificates are set to expire in less than 20 days, then that’s a strong indicator that auto-renewal isn’t working properly. Per the auto-renewal script, the certificates are set to auto-renew sometime within the month before they are set to expire.

      If you’d like to test whether or not auto-renewal is working correctly, I’d recommend going through the steps outlined in this tutorial.

      As always, feel free to reach out if you have any questions!
      Joe

  32. Nickie Oakwood says

    August 7, 2019 at 3:16 am

    Now encountering this in the SSH Error:

    There has been an error.
    This installer requires root privileges. Please become superuser before
    executing the installer

    Reply
    • Leron Amin says

      August 12, 2019 at 6:22 pm

      Hi Nickie,

      Execute the command with sudo in-front to enable root/superuser permissions.

      Hope this helps and let me know if you have any questions,
      Joe

  33. Nickie Oakwood says

    August 7, 2019 at 2:42 am

    How to delete the SSL to start over as my site is now serving 503?

    Reply
    • Leron Amin says

      August 12, 2019 at 6:26 pm

      Hi Nickie,

      Just re-issue new certificates and the old ones will be overwritten.

      Let me know if you have questions,
      Joe

  34. Kasati says

    July 25, 2019 at 10:07 pm

    Thanks very much Joe.This is just what I need.

    I have an issue .After I enter command
    [sudo nano /opt/bitnami/apache2/conf/bitnami/bitnami.conf]

    it shows [ Directory ‘/opt/bitnami/apache2/conf/bitnami’ does not exist ] so I cant finish Configure HTTPS Redirect.

    what should I do next ? please help me.

    Reply
    • Leron Amin says

      July 29, 2019 at 5:38 pm

      Hi Kasati,

      Are you using the Bitnami version of WordPress on Google Cloud? If so, try navigating to the bitnami.conf file one directory-level at a time and make sure that file and directory actually exists.

      If so, navigate to the bitnami directory, and run sudo nano bitnami.conf from within the directory.

      Let me know if you have questions,
      Joe

    • sandeep says

      February 8, 2020 at 12:28 am

      my directry doesnt exist what i do?

    • Leron Amin says

      February 24, 2020 at 10:14 am

      Hi Sandeep,

      What does your directory tree look like?

      Are you sure you deployed the correct Bitnami solution? There is both a Bitnami WordPress Multisite as well as a standalone Bitnami WordPress solution, and it’s easy to get them confused.

      Take a look at your directory tree and whether or not you deployed the correct solution.

      Talk to you soon,
      Joe

    • Vesna says

      May 1, 2020 at 12:28 pm

      This happened to me Bitnami also has a non-apache version which wont have that directory

      Bitnami says: “TIP: To find out if your Bitnami stack uses Apache or NGINX, check the output of the command sudo /opt/bitnami/ctlscript.sh status.”

      Nginx instructions here:

      https://docs.bitnami.com/google/how-to/generate-install-lets-encrypt-ssl/#alternative-approach

    • jinhui zhang says

      November 1, 2019 at 10:14 pm

      same question!and how to “navigate to the bitnami directory”? Thanks!

    • Leron Amin says

      November 9, 2019 at 2:35 pm

      Hi Jinhui,

      You would use the cd command to navigate to the bitnami directory, which is located at the following location:

      /opt/bitnami/apache2/conf/bitnami/

      Let me know if you have any questions!
      Joe

  35. Jinson K V says

    July 22, 2019 at 9:37 am

    Hi I have an issue.

    1. I have steup Google Cloud wordpress on unknownguides.com. The problem is that, sometimes, it load as https://unknownguides.com and sometimes, it load as https://www.unknownguides.com/. I don’t want the www version.

    2. WordPress Address (URL) and Site Address (URL) in settings –> general is greyed out. I cant edit it. But with other hosting, there is the option to edit that field.

    Reply
    • Leron Amin says

      July 24, 2019 at 6:25 pm

      Hi Jinson,

      You can configure your site URLs within your wp-config.php file, which I cover in this tutorial. Remember to use https:// and not http:// when you configure the site URLs.

      Let me know if you have questions,
      Joe

    • Jinson says

      August 13, 2019 at 11:07 am

      Hi it worked. Thanks.

      I have been trying changing most of the bitnami config files for the last couple of days. none of them worked. Even bitnami community forum told some other answers which doesn’t work for me. Finally See your reply here and try it.
      Thanks again.

    • Leron Amin says

      August 14, 2019 at 5:01 pm

      Thanks for the feedback Jinson – I’m glad to hear you were able to get it working!

  36. Jinson K V says

    July 21, 2019 at 9:42 pm

    Thanks for the guide. I have successfully installed WordPress on Google Cloud and activated SSL based on your tips. Can you make a video on this error “A definition of a siteurl or homeurl was detected in your wp-config.php, but the file is not writable.” When trying to install some plugins, I am getting this error. Thanks. 🙂

    Reply
    • Leron Amin says

      July 24, 2019 at 6:45 pm

      Hi Jinson,

      You may have to change the permissions of the wp-config.php file – let me know if you need instructions on how to do this.

      Talk to you soon,
      Joe

  37. Caleb Adekunle says

    July 15, 2019 at 5:27 pm

    I got this error please can you help me out on this
    [vevio.cz] acme: error: 400 :: urn:ietf:params:acme:error:dns :: DNS problem: SERVFAIL looking up A for vevio.cz, u
    rl:
    [www.vevio.cz] acme: error: 400 :: urn:ietf:params:acme:error:dns :: DNS problem: SERVFAIL looking up A for http://www.vev
    io.cz, url:
    Error: Something went wrong when running the following command:
    $ “$LEGO_BIN” –path “/opt/bitnami/letsencrypt” –tls –email=”${email}” ${domain_args} run
    Please check our documentation or open a ticket in our community forum, our team will be more than happy to help yo
    u!
    Documentation: https://docs.bitnami.com/
    Support: https://community.bitnami.com/
    We are going to try to recover the web server configuration now…

    Reply
    • Leron Amin says

      July 24, 2019 at 6:41 pm

      Hi Caleb – hope you’re well!

      There’s an issue with either your DNS configuration or the LEGO script itself.

      Open a support ticket at community.bitnami.com and see what their engineers have to say. Also, check out this thread started by a user with what appears to be a similar issue.

      Let me know if you’re able to get it fixed.

      Thanks,
      Joe

  38. Gyanu says

    July 12, 2019 at 9:45 am

    Hi’ leron

    I created my site in January I followed every tutorial of yours and thanks for great tutorials.

    My website SSL just expired I don’t how but I’ve done all renewal things but still, it’s showing my site SSL expired on SSL checker sites.

    So, Then I followed previse tutorial again, and terminal showing everything is fine, Then I re-generated SSL certificate but It’s still not showing any SSL on my site tenreason.com.

    And when I followed this tutorial It’s saying this:

    ( It seems there is a valid certificate in the web server configuration folder. Please renew that certificate or generate new ones manually
    Please check our documentation or open a ticket in our community forum, our team will be more than happy to help you! )

    When I try to generate new one it says congratulations SSL generated successfully

    BUT WHY NOT SHOWING ON MY SITE I have followed SSL error tutorial too

    I’m using Bitnami

    Reply
    • Leron Amin says

      July 24, 2019 at 6:54 pm

      Hi Gyanu,

      I checked your website at it appears to be loading with HTTPS.

      How did you resolve the issue?

      Talk to you soon,
      Joe

  39. Siopao says

    July 10, 2019 at 9:25 pm

    Hi,

    The keys didn’t auto-renew. Is there a way to force renew this?

    Thanks.

    Reply
    • Siopao says

      July 10, 2019 at 9:45 pm

      Sigh.

      It turned out I don’t have bncert tool and I have to install this for your stuff to work.
      https://docs.bitnami.com/google/how-to/understand-bncert/

      Thanks again.

  40. jay patel says

    July 7, 2019 at 7:37 am

    Non www version is only working on homepage.

    It’s not working on pages.

    www and non www both are working on pages, i only want non www to be work on whole site.

    Reply
    • Leron Amin says

      July 8, 2019 at 5:22 pm

      Hi Jay,

      Which steps have you taken so far? Did you configure the redirect?

      Also, make sure to change your WordPress URLs to the desired version of your domain under Settings > General.

      Hope this helps and let me know if you have questions,
      Joe

  41. Ernest Akpos says

    July 4, 2019 at 3:57 pm

    Hello Leron Amin
    You are doing a great job with this site and i have a learned a lot. Thanks a million. I have a request, I just saw that google cloud introduced bitnami wordpress with NGINX and SSL. I wanted to install SSL with this tutorial, but it does not follow exactly.How do i do this? Could you do a tutorial on it? I will like to use this NGINX. Thanks

    Reply
    • Leron Amin says

      July 8, 2019 at 5:20 pm

      Thanks for the feedback Ernest – I’ve added this to my list of tutorials-to-do!

  42. Josh says

    June 13, 2019 at 9:44 pm

    How can I get the SSL Certificate to work for a “SubDomain”? I created an “A Record” pointing to IP Address for subdomain which is complete. now I would like to install an SSL on the subdomain.

    Reply
  43. Benjamin Waller says

    June 11, 2019 at 6:14 pm

    Thanks very much Joe for this updated tutorial.

    It looks like it getting simpler to set up the SSL Certificate using letsencrypt. I would like to add that I still needed to complete Step 6; to define site and home URLs as per the pervious video tutorial on SSL because I got mixed content by an image I uploaded but this step fixed that.

    https://onepagezen.com/free-ssl-certificate-wordpress-google-cloud-bitnami/
    and mentioned in this tutorial.
    https://onepagezen.com/fix-ssl-certificate-errors-google-cloud/

    Also, I see that configuring the certificates has completely changed in this new version.

    Best regards,
    Ben

    Reply
    • Leron Amin says

      June 17, 2019 at 5:42 pm

      Hey Ben,

      Thanks for bringing this to my attention – this is an essential step and I will add it to the tutorial later today.

      Thanks again and talk to you soon,
      Joe

  44. Benjamin Waller says

    June 9, 2019 at 1:43 am

    Hey Joe,
    Just getting stuck on the last step 5. Restart Apache Server, after adding 3 lines to Configure for HTTPS Redirect. Here is the following error:

    AH00526: Syntax error on line 11 of /opt/bitnami/apache2/conf/bitnami/bitnami.conf:
    RewriteEngine must be On or Off

    Here is my three lines I added:
    RewriteEngine On 
    RewriteCond %{HTTPS} !=on 
    RewriteRule ^/(.*) https://www.jonaviray.com/$1 [R,L]

    It all looks good to me. I have the RewriteEngine on so am a little confused. Also I just did the same configuration to my Moodle site and it worked.
    Any help would be great.
    Cheers,
    Ben

    Reply
    • Leron Amin says

      June 10, 2019 at 6:29 pm

      Hey Ben,

      It’s great to hear from you!

      You can enable RewriteEngine by running the following command:

      sudo a2enmod rewrite

      Remember to restart Apache after making the change:

      sudo /opt/bitnami/ctlscript.sh restart apache

      Let me know if this works for you!
      Joe

    • Benjamin Waller says

      June 10, 2019 at 11:29 pm

      Hi Joe,
      Thanks for the reply.
      I got the following when using the first command here (sudo a2enmod rewite)

      sudo: a2enmod: command not found

      So something is wrong somewhere!
      Ben

    • Benjamin Waller says

      June 11, 2019 at 4:51 am

      Hey Joe,

      Removing a couple of weird underscores on 2 lines was the cause of the issue.
      So all is good, thanks.

      See resolved issuse on Bitnami Community forum.
      https://community.bitnami.com/t/ah00526-syntax-error-on-line-11-of-opt-bitnami-apache2-conf-bitnami-bitnami-conf/68354

    • Leron Amin says

      June 17, 2019 at 5:12 pm

      Awesome – I’m glad it was a quick fix! Also, thanks for sharing the solution. I’m curious where those underscore characters were coming from?

      Talk to you soon,
      Joe

  45. Mohamad says

    June 4, 2019 at 10:19 pm

    Thank you very much.

    There are many occasions when I needed help right, from the very beginning of my journey on how to set up a wordpress site on google cloud platform and the various problem encounter along the way and to this the latest one.. had to delete my old vm and reinstall wordpress, ssl site error.

    You sir, have been my number one source of help. I cannot thank you enough.

    You have save me countless headaches, heartaches and time.

    Cheers and God Bless You.

    Mohamad

    P.S. I cannot stress this enough to everyone out there, I’ve learned it the hard way…..backup, backup, backup on every opportunity u can. Your tutorial on All In One WP Migration is another gold nugget. Thank you

    Reply
    • Leron Amin says

      June 8, 2019 at 4:02 pm

      Thank you for the awesome feedback Mohamad!

      I know how difficult the journey can be. Becoming proficient in cloud computing technologies is not for the faint of heart. As you very well know, it takes a lot of patience and tons of perseverance. With that being said, congratulations on all that you’ve achieved!

      And yes – backup, backup, backup – that simply cannot be stressed enough!

      Cheers to you,
      Joe

  46. Wasim says

    May 31, 2019 at 12:04 pm

    Thank you for your videos 🙂
    I need please. I was following the steps on the video and I cannot access my domain now for some reason 🙁
    I wonder what the issue could be.

    Thank you in advance!

    Reply
    • Leron Amin says

      June 8, 2019 at 3:42 pm

      Hi Wasim,

      There could be many issues causing your website not to respond.

      What happens when you try to access your website in the browser? Do any status codes appear or does the page simply timeout?

      Talk to you soon,
      Joe

  47. Prasoon G Das says

    May 30, 2019 at 11:11 pm

    Hi, great work here.

    I got past all the steps until step 4: configuring https.

    I get an error that my bitnami.conf file is not found.

    [ Directory ‘/opt/bitnami/apache2/conf/bitnami’ does not exist ]

    Please help.

    Reply
    • Leron Amin says

      June 8, 2019 at 3:28 pm

      Hi Prasoon,

      Please share which command is causing the error.

      Talk to you soon,
      Joe

  48. Antal says

    May 21, 2019 at 3:05 am

    Hi Joe,

    First of all I would like to thank you for all your superb walk through tutorials. They are really useful for non-techies like myself.

    I would like to ask for your help with the following issue I came across.

    I wanted to upgrade the PHP, MSQL, etc. version of my deployment on GCP. I figured a clean way to go about it would be to redo the website on a new deployment. I chose the “WordPress with NGINX and SSL Certified by Bitnami” version for this. When I got to the part of pointing my domain name to the new deployment everything was fine. But when I followed the steps to setup the SSL certificate something went wrong. I’ve managed to get the certification, but failed to the following steps (Configure HTTPS Redirect). There was an error message when trying to locate the Bitnami config file. “The file doesn’t exist”. And since then I am getting a “502 – Bad Gateway” on the new deployment.

    Would you be able to assist me to fix this? Was this tutorial not meant to work with the above mentioned version of Bitnami deployment?

    I look forward to your answer.

    Antal

    Reply
    • Leron Amin says

      May 26, 2019 at 12:49 pm

      Hi Antal,

      This tutorial is meant for Bitnami’s LAMP stack solution (Linux, Apache, MySQL, PHP), and will not work with their LEMP stack solution (Linux, Nginx, MySQL, PHP).

      That being said, the SSL instructions for issuing the certificates are similar for the LEMP stack solution – which you can view here. Once you’ve issued the certificates, configure an HTTPS redirect with Nginx as shown here, and you should be good to go!

      Let me know if you have any questions,
      Joe

  49. Sohil Patel says

    May 20, 2019 at 5:21 am

    This worked for me, just took a couple of minutes.

    Thanks for this and other tutorials, really helpful and straightforward.

    Reply
    • Leron Amin says

      May 20, 2019 at 6:10 pm

      Thanks for the feedback Sohil – I’m glad to hear the tutorial worked for you!

  50. Alexander Morac says

    May 19, 2019 at 5:37 pm

    Hello Leron, thanks for the tutorial, Are these certificates renewed automatically? or do you touch manually?

    Reply
    • Leron Amin says

      May 20, 2019 at 6:11 pm

      Hey Alexander – the certificates are configured to renew automatically.

    • John says

      December 2, 2020 at 5:51 pm

      Dear Leron,
      Great tutorial. I use the Bitnami WP. I followed all your steps, but after 3 months the certificate wasn’t renew automatically. I had to renew it manually. Can you tell us how to let them renew automatically?

    • Leron Amin says

      December 12, 2020 at 3:59 pm

      Thanks for the feedback John!

      Check out this tutorial for instructions on configuring auto-renewal.

      Let me know if you have other questions,
      Joe

  51. Alejandro Chaves says

    April 11, 2019 at 10:47 am

    Hello,
    I can not get past the first step I get: /opt/bitnami/letsencrypt/scripts/generate-certificate.sh: command not found

    Reply
    • Leron Amin says

      April 11, 2019 at 8:45 pm

      Hi Alejandro,

      Are you using WordPress Bitnami? Are you using a new version of the WordPress Bitnami stack? The reason I ask is because the older versions of this stack don’t come pre-installed with this script.

      First, check if that script exists in your scripts directory by executing:

      cd /opt/bitnami/scripts

      Like I said – it may not be there by default in the older versions of this stack.

      Let me know if you have questions,
      Joe

  52. Leron Amin says

    April 6, 2019 at 6:53 pm

    What did you think of this tutorial? Please share your questions and comments!

    Reply

Leave a Reply Cancel reply

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

Want Exclusive Tutorials?

Welcome to One Page Zen!

Through this blog I hope to introduce web developers to cloud computing!

author-bio

facebook-support-group kinsta-cloud-hosting

Want Exclusive Tutorials?


Contact | Sitemap | Legal | Privacy Policy | Affiliate Disclosure
      Copyright © 2017 - 2019 One Page Zen
Share this Article

Email sent!