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

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
主站蜘蛛池模板: 昭通市| 高清| 崇明县| 昌乐县| 大荔县| 满城县| 扬中市| 内乡县| 郑州市| 白水县| 崇礼县| 永和县| 东乡县| 绥中县| 柳林县| 土默特左旗| 普宁市| 黄梅县| 唐河县| 鄂伦春自治旗| 大埔县| 慈利县| 舞钢市| 比如县| 夏津县| 杨浦区| 乌鲁木齐县| 左云县| 高雄市| 鲁甸县| 余干县| 赤城县| 临颍县| 镶黄旗| 华坪县| 鄂伦春自治旗| 清涧县| 佳木斯市| 永吉县| 昌邑市| 大埔区|