1. Install phpmyadmin by apt-get.
$apt-get install phpmyadmin
2. Search for the phpmyadmin configuration directory and look for apache.conf
#Use "updatedb" to update the slocate database. We need to use "locate" to search for the file.
$updatedb
#Search for "apache.conf"
$locate apache.conf
/etc/phpmyadmin/apache.conf
3. Edit the file /etc/apache2/apache2.conf and include the phpmyadmin apache.conf.
$nano /etc/apache2/apache2.conf
# add the line below at the end of the file and save it.
Include /etc/phpmyadmin/apache.conf
4. Restart Apache2
$/etc/init.d/apache2 restart
5. Go to http://yourdomain/phpmyadmin to see if it works.