the project web server with WordPress

The following pictures is my hardware setup:

Case: Argon One (a very awesome case)
Board: Raspberry pi 4 4G

Installation and setup procedure

Install apache server

sudo apt-get update
sudo apt-get upgrade
you need a webserver, we are going to use Apache here.
sudo apt-get install apache2 -y

Install PHP

sudo apt-get install php -y
sudo service apache2 restart

Got to the following path and create a file call index.php with content as following:
<?php phpinfo(); ?>

Check your webpage by going to the following address:

Install mySQL (MariaDB)

sudo apt-get install mariadb-server php-mysql -y

And restart your web server:
sudo service apache2 restart

Install WordPress

cd /var/www/html/
sudo rm *
sudo wget
sudo tar xzf latest.tar.gz
sudo mv wordpress/* .
sudo rm -rf wordpress latest.tar.gz
sudo chown -R www-data: .

Setting up wordPress database

sudo mysql_secure_installation
  • You will be asked Enter current password for root (enter for none): — press Enter.
  • Type in Y and press Enter to Set root password?.
  • Type in a password at the New password: prompt, and press Enter. Important: remember this root password, as you will need it later to set up WordPress.
  • Type in Y to Remove anonymous users.
  • Type in Y to Disallow root login remotely.
  • Type in Y to Remove test database and access to it.
  • Type in Y to Reload privilege tables now.
  • When complete, you will see the message All done! and Thanks for using MariaDB!.

sudo mysql -uroot -p
create database wordpress;
sudo reboot