I installed phpmyadmin in Ubuntu 16.04 with:
sudo apt -y update && sudo apt install phpmyadmin
after installation, localhost/phpmyadmin shows a not found error page.
I used this code for solving this issue:
sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf-available/phpmyadmin.conf
sudo a2enconf phpmyadmin.conf
sudo service apache2 reload
But localhost/phpmyadmin return php code as text.
See the screen-shot:
Where is my problem ?