官术网_书友最值得收藏!

Setting Up a Hardened WordPress with Encrypted Automated Backups

Now that the basic setup is done, let's pick up various security automation scenarios and look at them one by one.

Everyone would agree that setting up a secure website and keeping it secured is a fairly common security requirement. And since it is so common, it would be useful for a lot of people who are tasked with building and managing websites to stay secure to look at that specific scenario. 

Are you aware that, according to Wikipedia, 27.5% of the top 10 million websites use WordPress? According to another statistic, 58.7% of all websites with known software on the entire web run WordPress. 

If there are so many, an automated secure way of setting up and maintaining WordPress should be useful for some readers.

Even if WordPress is something that doesn't interest you a lot, bear in mind that the overall steps to set up and secure a LAMP/LEMP stack application are universal. 

For us, setting up a hardened WordPress with encrypted automated backups can be broken down into the following steps:

  1. Setting up a Linux/Windows server with security measures in place.
  2. Setting up a web server (Apache/Nginx on Linux and IIS on Windows).
  3. Setting up a database server (MySQL) on the same host.
  4. Setting up WordPress using a command-line utility called WP-CLI.
  5. Setting up backup for the site files and the database which is incremental, encrypted, and most importantly, automated.

In this chapter, we will do all of this using Ansible playbooks and roles. We will assume that the server that we plan to deploy our WordPress website on is already up and running and we are able to connect to it. We will store the backup in an already configured AWS S3 bucket, for which the access key and secret access key is already provisioned. 

We will discuss the following topics:

  • CLI for WordPress
  • Why Ansible for this setup?
  • A complete WordPress installation, step-by-step
  • Setting up an Apache2 web server
  • What if you don't want to roll your own? The Trellis stack
  • Why would we use Trellis, and when is it a good idea to use it?
  • Enabling TLS/SSL with Let's Encrypt
  • WordPress on Windows
主站蜘蛛池模板: 攀枝花市| 改则县| 兴城市| 嘉兴市| 乌鲁木齐县| 东乡县| 乌审旗| 湟源县| 措勤县| 长垣县| 南和县| 兴海县| 鹤岗市| 西乌珠穆沁旗| 会昌县| 桐乡市| 定结县| 勃利县| 青岛市| 富川| 沂源县| 手机| 滨海县| 防城港市| 澎湖县| 丽水市| 邵武市| 名山县| 枣强县| 东阳市| 丘北县| 南皮县| 高陵县| 神池县| 鹰潭市| 阿荣旗| 马公市| 东乡族自治县| 沂源县| 石景山区| 叶城县|