How to Install WordPress with MariaDB (or MySQL) on Ubuntu-20.04
Environment Device : Odroid-HC2 OS : Ubuntu-20.04 HostName : test IP : 192.168.101.100 Pre Insall App : Mairadb(or MySQL), NGINX, PHP
1. Install wordpress
$ sudo apt install php-curl php-gd php-mbstring php-xml php-xmlrpc php-soap php-intl php-zip php-net-ldap2 php-net-ldap3 php-net-idna2 -y
$ wget https://wordpress.org/latest.zip
$ unzip latest.zip
2. Generate database for wordpress
WordPress SQL database : wordpress SQL userid : wordpress SQL password : test@test
※ Change it to suit your environment
$ sudo mysql -u root
> create database wordpress;
> grant all on wordpress.* to wordpress@localhost identified by 'test@test';
> flush privileges;
> quit;
3. Copy WordPress
$ sudo cp -R wordpress /var/www/html/wp
$ sudo chown -R www-data:www-data /var/www/html/wp
$ sudo ls /var/www/html/ -l
4. Generate WordPress Initial Setting
WordPress SQL database : wordpress SQL userid : wordpress SQL password : test@test
※ Change it to suit your environment