If you encounter a 404 error when accessing localhost/phpmyadmin (after installing apache2, mysql-server, phpmyadmin), you will need to link phpMyadmin-shipped Apache configuration into Apache.
Open up your terminal and enter the following:
sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf.d/phpmyadmin.conf sudo /etc/init.d/apache2 reload
After this is done, try accessing localhost/phpmyadmin and you should be able to login.


























