Install WordPress 5.5 on Ubuntu 20.04 LTS

The procedure for installing the LAMP (Linux / Apache / MariaDB / PHP) environment on Ubuntu is described below.

Change time zone

sudo su - 
timedatectl set-timezone Asia/Tokyo

Apache installation

apt -y update
apt -y install apache2 
systemctl enable apache2
systemctl start apache2

Go to your Ubuntu 20.04 server IP address (you can find it with `` `curl -w'\ n'```) in your web browser and see if the Apache test page appears.


PHP 7.4 installation

apt -y install php7.4 php7.4-mysql

MariaDB 10.3 installation

apt -y install mariadb-server mariadb-client
systemctl enable mariadb
systemctl start mariadb

MariaDB 10.3.25 was installed as of 2020-11-02.

$ sudo mariadb
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 51                                                                  
Server version: 10.3.25-MariaDB-0ubuntu0.20.04.1 Ubuntu 20.04                                     
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.                              
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.                    
MariaDB [(none)]>  

WordPress installation

WordPress download / unpack

Download the current WordPress latest version and extract it under DocumentRoot.

cd /var/www/html
tar xvf latest-ja.tar.gz
chown -R www-data:www-data .

Create database for WordPress

Create the database wordpress with the character code UTF8 on MariaDB Monitor (mariadb command).


Creating a MariaDB user for WordPress

Create a wordpress user with full privileges only for the database you just created (change your username / password accordingly).

GRANT ALL ON wordpress.* TO wordpress@localhost IDENTIFIED BY 'password';

WordPress initial settings

Access xx.xx.xx.xx / wordpress / with a web browser and make the initial settings for WordPress.



After successful installation, you can log in to the dashboard with the specified user and password.



Recommended Posts

Install WordPress 5.5 on Ubuntu 20.04 LTS
Install raspi-config on Ubuntu 20.04 (LTS)
Install Ruby on Ubuntu 20.04
Apache2 on Ubuntu20.04 LTS
Install Homebrew on Ubuntu 20.04
How to install multiple JDKs on Ubuntu 18.04 LTS
Building WebGIS on Ubuntu20.04 LTS
Install OpenJDK7 (JAVA) on ubuntu 14.04
Install Cybozu Office 10 on Ubuntu 20.4
Install Docker on Ubuntu Server 20.04
Install zabbix agent (5.0) on Ubuntu 18.04
Install MAV Proxy on Ubuntu 18.04
Record video on ubuntu18.04 LTS
Installing OpenMX on Ubuntu 18.04.5 LTS
Install Java on WSL Ubuntu 18.04
Install Ubuntu Desktop 20.10 on RaspberryPi4
Install Arduino IDE on Ubuntu 20.04
Install PlantUML on Intellij on Ubuntu
Install Ubuntu Server 20.04 on Btrfs
Note: Install PostgreSQL 9.5 on Ubuntu 18.04
Install Docker on AWS Ubunt 20.04 LTS
Install AWS IoT Greengrass on Ubuntu
Install JDK and JRE on Ubuntu 16.10
Install ngrok on ubuntu16.04 using Vagrant
Install Linux Mint 20 after Ubuntu 18.04 LTS
Wake on Lan settings on Ubuntu 20.04.1 LTS
How to install WildFly on Ubuntu 18.04
Install MQTT broker Mosquitto on Ubuntu 18.04
Install SonarQube on ECS instance on Ubuntu 16.04
Install ruby on Ubuntu 20.04 with rbenv
Install Ubuntu MATE 20.04 LTS on older MacBook Early 2008 (MB402 * / A, MB403 * / A, MB404 * / A)
How to Install Elixir and Phoenix Framework on Ubuntu 20.04 LTS
How to install java9 on elementaryOS Freya or Ubuntu 14.04 LTS
WSL2 + Ubuntu 20.04 Install Vivado in LTS environment
Headless install of Ubuntu 20.10 on Raspberry Pi
Install OpenJDK (Java) on the latest Ubuntu
I want to install PHP 7.2 on Ubuntu 20.04.
Install Realtek network driver on Ubuntu Note
tmux on Ubuntu
Wine settings on Ubuntu 18.04 (install WOLF RPG Editor)
Build and install Wireshark Development Release (3.3.1) on Ubuntu
Disk expansion on Ubuntu 20.04.1 LTS on GCP Compute Engine
How to install network drivers on standalone Ubuntu
How to install NVIDIA driver on Ubuntu 18.04 (Note)
Install and switch between multiple Javas on Ubuntu
Install the latest version of Jenkins on Ubuntu 16
How to Install Oracle JDK 1.8 in Ubuntu 18.04 LTS?
Screen recording on Ubuntu 20.04
Web Bluetooth on Ubuntu20.04
Install gradle on mac
Install Corretto 8 on Windows
Install OpenJDK on macOS
Try DisplayLink on Ubuntu 20.04
Reinstall Kubernetes on Ubuntu 19.10
Install Java on Mac
Install Golang on CentOS 8
Use Flutter on Ubuntu
Install Neo4j 4.1.3 on centOS
Install ROS Noetic ubuntu20.04
Install Docker on Manjaro
Install Gradle with ubuntu16.04