Before installing WordPress, our Ubuntu 20.04 system will need three main components to run it: Nginx, PHP, and MySQL. Nginx is for our web server, PHP is to display dynamic content, and MariaDB (an open source fork of MySQL) is for our database. You can install these packages by opening a terminal and typing the following two commands: $ sudo apt update $ sudo apt install nginx mariadb-server mariadb-client php-fpm php-mysql
MySQL requires a little bit of setting up before we can start creating a database. Let's first run through the initial security setup. Type the following command in terminal: $ sudo mysql_secure_installation You'll be asked to set a root password for MySQL, and then a few security question. You can answer y (yes) to all the questions, and then setup will complete.