Install Nginx, PHP, MariaDB, and WordPress on Ubuntu 20.04

A basic walkthrough for installing Nginx, PHP, MariaDB, and WordPress on Ubuntu 20.04 to build a traditional LNMP website stack.

Install packages

1
2
3
sudo apt update
sudo apt install nginx mariadb-server mariadb-client php-fpm php-mysql
sudo apt install php-gd

Initialize database and WordPress site

Create DB/user, configure Nginx virtual host + PHP-FPM, then complete WordPress setup.

记录并分享
Built with Hugo
Theme Stack designed by Jimmy