A “LAMP” stack is a group of open-source software that is typically installed together in order to enable a server to host dynamic websites and web apps written in PHP.
Step 1 — Installing Apache and Updating the Firewall
Step 2 — Installing MySQL
Step 3 — Installing PHP
Just to know more ideas on how to install visit this link: https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu-20-04