How to Install LAMP on Ubuntu / Debian
1. Install Apache
sudo apt-get install apache2
2. Install MySQL
sudo apt-get install mysql-server
3. Install PHP
sudo apt-get install php5 libapache2-mod-php5
4. Restart Server
sudo /etc/init.d/apache2 restart
http://howtoubuntu.org/how-to-install-lamp-on-ubuntu
ps: After installation of phpMyAdmin it creates a configuration file for Apache2. Edit Apache2 main configuration file /etc/apache2/apache2.conf
vi /etc/apache2/apache2.conf
add following line at the end of file.
Include /etc/phpmyadmin/apache.conf
Restart Server
sudo /etc/init.d/apache2 restart
How to Install and Configure phpMyAdmin on Ubuntu 18.04 & 16.04 LTS