Most webmasters opt for phpMyAdmin to manage their MySQL database on their VPS or dedicated server, but sometimes you may end up getting 404 “Not Found” error when you point your browser to phpmyadmin installation (say like: http://127.0.0.1/phpmyadmin). This error is most likely caused by not selecting “Apache 2″ during the installation. To fix it, you must redo the phpmyadmin installation.
Enter the following in your terminal:
sudo dpkg-reconfigure -plow phpmyadmin
Reinstall database for phpmyadmin: Select “No”
Web server to reconfigure automatically: Select “apache 2″
It should work now. If not, do the following to include the phpMyadmin-shipped Apache configuration into Apache:
sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf.d/phpmyadmin.conf
sudo /etc/init.d/apache2 restart
That’s it. Let me if you have any doubts in the comment.