LAMP stack is a group of open source software used to get web servers up and running. The acronym stands for Linux, Apache, MySQL, and PHP.
To install LAMP on Ubuntu with a 1-line command, please open the terminal, then run:
$ sudo apt-get install lamp-server^
It’s important to remember the caret (^) at the end of the command.
The default working directory is /var/www/html, you can download database management tools, such as phpMyadmin https://www.phpmyadmin.net/, Adminer https://www.adminer.org/ to it.