Finally got time to migrate the RTFM.CO.UA blog to a new server with Debian 10. This time manually, without any automation will set up a LEMP stack

Wrote a similar at 2016 —  Debian: установка LEMP — NGINX + PHP-FPM + MariaDB (Rus), but in time the post is more complete of the process and tools used to spin up a ready-for-use Linux server for hosting a website, actually — a WordPress blog.

And again, it was planned as a quick note on installing NGINX + PHP + MySQL, but as a result, I’ve described LEMP, Linux monitoring, logs, emailing, etc set up process and configuration.

So, what we will do in this post:

  • create a droplet in DigitalOcean
  • SSL from Let’s Encrypt
  • NGINX
  • PHP-FPM
  • MySQL (MariaDB) as a database server
  • NGINX Amplify agent — monitoring and alerting (I’ve tried Grafana и Loki but they used too many resources, still it was a really interesting setup with automation, check the  Prometheus: RTFM blog monitoring set up with Ansible — Grafana, Loki, and promtail)
  • WordPress backup script — a self-written Python script, check the  Python: скрипт бекапа файлов и баз MySQL в AWS S3 (Rus)
  • Logz.io — collect logs to the ELK-stack
  • unattended-upgrades - Debian and installed packages auto upgrades
  • logrotate - logs rotation

#linux #nginx #php #mysql #wordpress

Linux: LEMP set up — NGINX, PHP, MySQL, SSL, monitoring, logs, a WordPress blog migration
1.75 GEEK