wordpress ssl

How to Secure your WordPress by using Letsencrypt in google cloud

In this article, I will show you how you can secure your WordPress site using Letsencrypt in GCP. But before that, let’s discuss what is WordPress.

What is WordPress

According to WikipediaWordPress is a free and open-source content management system written in PHP and paired with a MySQL or MariaDB database. Features include a plugin architecture and a template system, referred to within WordPress as Themes. 

So WordPress is the most popular CMS on this planet earth and more than 30% of websites on the Internet built with WordPress. So if you are planning to build a blog or corporate site then chances are pretty high that it will be built with WordPress.

How to Secure WordPress

So now we are going to discuss how to secure your WordPress by using Letsencrypt in google cloud. WordPress is one of the most popular CMS platforms in this world. By using Letsencrypt you can make it secure and safe for your users. Because when your user sees your site is not secure, then they quickly leave your site. As a result, your SEO rank goes down.

Please who usages WordPress for their blog or company page, usually spent a lot of time on SEO. But if your site is not secure then it will hurt your SEO ranking. So that’s why I have created this video so that people can easily set up SSL on their website.

I have done this on the google cloud platform. Those who don’t know how to start with google cloud please follow my other tutorial here

After you signup for Google Cloud, then please set up a WordPress site over there. If you want to learn more about how to set up WordPress on Ubuntu, then you can follow my Tutorial here.

Commands to set up Letsencrypt in Ubuntu 18 are given below with an Explanation.

sudo apt-get update
sudo apt-get install software-properties-common
sudo add-apt-repository universe
sudo add-apt-repository ppa:certbot/certbot
sudo apt-get update

So these 5 lines of code are actually updating the package list and then setting a package repository for certbot. The certbot tool is the main software that invokes SSL certifies and installs in your server.

After we have set up the Certbot repository, next we need to install the python-certbot-apache. As our web server is Apache so that’s why we are using python-certbot-apache, but if we have installed Nginx rather than Apache then this line of code would have been different.

sudo apt-get install certbot python-certbot-apache
sudo certbot --apache 

After installing the SSL certificate, I suggest restarting the Apache server by running the command below.

sudo service apache2 restart 

Conclusion

So in this article, we have seen how to install an SSL certificate for WordPress in Ubuntu OS and then configure a WordPress site to use this SSL certificate. I hope this might helped you to start with WordPress and Letsencrypt and if you stuck on any issues feel free to contact me via [email protected] or call me @ +8801554306975

Leave a Comment

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