Setting up my first Lightsail on AWS

The commands I used:

  • apt update = “Check what new versions are available”
  • apt upgrade = “Actually install those new versions”
  • sudo apt install apache2 -y
  • sudo systemctl status apache2
  • sudo apt install mysql-server -y
  • sudo apt install php libapache2-mod-php php-mysql -y
  • sudo wget https://wordpress.org/latest.tar.gz
  • sudo tar -xzf latest.tar.gz
  • sudo mv wordpress/* .
  • sudo rmdir wordpress
  • sudo rm latest.tar.gz
  • sudo mysql -u root -p   —> this command ask me for a password to log in to the mariaDB

Leave a Reply