I went to my usual URL for phpMyAdmin, but rather than seeing the login form I saw a 404 page instead. What?! It turns out I was missing some configuration inside of the apache2.conf file.
Let’s fix this
Open up the apache2 configuration file:
sudo nano /etc/apache2/apache2.conf
And ensure you have this phpMyAdmin include:
#Include phpMyAdmin Include /etc/phpmyadmin/apache.conf
Finally, restart apache
sudo service apache2 restart
Why was phpMyAdmin all of a sudden returning a 404 page? Well I think it’s because I did a software update on my Ubuntu web server and accidentally overwrote my custom apache.conf
with the latest library version. Oops!