Install WordPress on Ubuntu server with the terminal in 5 easy steps
Use apt to update and upgrade ubuntu dependencies
sudo apt update
sudo apt upgrade -y
sudo apt install apache2 mariadb-server mariadb-client php php-mysql php-cli php-common php-gd -y
wget https://wordpress.org/latest.tar.gz
tar -xvzf latest.tar.gz
sudo cp -r wordpress/* /var/www/html
sudo chown www-data:www-data -R /var/www/html
#remove index.html (apache default index file)
sudo rm -rf /var/www/html/index.html
sudo mysql_secure_installation
sudo mysql -u root -p
create database wordpress;
create user "admin"@"%" identified by "password"
grant all privileges on wordpress.* to "admin"@"%"
access your IP
or domain
name and fill the database details and install WordPress