For this purpose, you have to edit Apache configuration file.
Go to Terminal and type
gksu gedit /etc/apache2/apache2.conf
Then add the following line to the end of the file.
Include /etc/phpmyadmin/apache.conf
Then restart apache
/etc/init.d/apache2 restart
sudo apt-get install phpmyadmin
It will download required dependencies automatically so you do not have to worry.
To install LAMP you should click here.
To install LAMP you should click here.