How to Install WordPress on AWS Apache 2 Ubuntu 22.04

To install WordPress on Amazon EC2 Ubuntu 18.04|20.04|22.04, Start ssh terminal and connect aws ec2 instance, And type sudo apt-get install lamp-server command to install lamp stack, and then type wget https://wordpress.org/latest.tar.gz command on ubuntu aws ec2 ssh terminal window