###1 one-line installment of php, apache, mysql and phpmyadmin:
$ sudo apt-get install apache2 php5-mysql php5-curl libapache2-mod-php5 mysql-server phpmyadmin
###2: open up vim
$ sudo vim /etc/apache2/apache2.conf
###3: add this line to the file and save
Include /etc/phpmyadmin/apache.conf
###4: restart apache
$ sudo service apache2 restart