LAMP (Linux, Apache, MySQL and PHP) is an open source Web development platform that uses Linux as operating system, Apache as the Web server, MySQL as the relational database management system and PHP as the object-oriented scripting language.
To install the LAMP stack with PHPMyAdmin on Ubuntu, fire up your terminal and type the following command:
sudo apt-get install lamp-server^ phpmyadmin
If you’re curious, the caret (^) in the command means that it’s a Taskel task. This link has a fairly good explanation of Taskel.
To access PHPMyAdmin, open terminal & type:
sudo gedit /etc/apache2/apache2.conf
Add this line somewhere in that file:
Include /etc/phpmyadmin/apache.conf
Finally restart Apache using:
/etc/init.d/apache2 restart
or
sudo service apache2 restart