WordPress Installation on Ubuntu 20.04
Wordpress Installation on Ubuntu Server 20.04
Introduction
WordPress is a free and open-source content management system written in PHP and paired with a MySQL or MariaDB database. Features include a plugin architecture and a template system, referred to within WordPress as Themes.
For more information you can go to this link
The homepage is here
Agenda
-
Update repositories
-
Install necessary packages
-
Do some configurations
Step 1
To update the repositories we must run this command, remember that using sudo
will require your password.
sudo apt update && sudo apt upgrade -y
Note: the -y
option is for applying the updates automatically without asking.
Step 2
sudo apt install -y apache mysql-server php libapache2-mod-php php-mysql
Step 3
Let’s configure the database first. We’re going to use a tool that comes with the mysql-server
sudo mysql-secure-installation
Note: You’ll be asked for some questions here regarding passwords for the DB root user and the removal of some default DBs. After you’re done setting up the password, we’ll go on with the next step.