How to Setup WordPress Using Docker-Compose

Wanted to learn on how to setup WordPress using docker? Read this tutorial till the end.

Normally, one would set up an Apache (LAMP) or Nginx (LEMP) server to host the WordPress websites. Instead of using a bare server, you also can use docker and/or docker-compose to set up the required software to host your WordPress sites.

A common docker setup is to create a separate container for each service. In this case, you would have at least three containers; Apache/Nginx, PHP, and MySQL/MariaDB.

But I also have seen people putting all services into one single container which is not an appropriate way of using docker in my opinion.

Continue reading “How to Setup WordPress Using Docker-Compose”

How to Install LEMP Stack on Ubuntu 20.04

ubuntu focal fossa mysql 8

In this blog post, I want to share how to install LEMP stack on Ubuntu 20.04 since I already have Ubuntu 20.04 installed on my machine.

If you need a VPS hosting, I would like to suggest for you to use Upcloud VPS Hosting. You can get $25 free credit if you register from my affiliate link here.

For those who are unfamiliar with LEMP/LNMP, it is Linux, Nginx, MySQL, and PHP which is a technology stack for web development and hosting web application.

We will install Nginx web server, MySQL 8 and PHP 7.4 on Ubuntu 20.04.

Continue reading “How to Install LEMP Stack on Ubuntu 20.04”

How to Remove NGINX Server Header in Ubuntu 18.04

For me, it is good to remove the server info footprint in the response header to minimize security threats to your server. So how do you remove NGINX server header in Ubuntu 18.04?

Before going into the tutorial, most of the server that I know e.g. Apache, IIS, LiteSpeed, Tengine will return the server info in response header by default. So I’m sure there are also resources on how to remove server header on these servers.

You can verify a response header by running “curl -I <domain-name>“. Sample response header for ApacheNginxIIS, and LiteSpeed as follows:

Continue reading “How to Remove NGINX Server Header in Ubuntu 18.04”