In such cases, after installing phpMyAdmin locally in Ubuntu 20.04, users receive a 404 error when accessing the phpMyAdmin web page, specifically the one accessible via localhost/phpmyadmin. Essentially, this occurs as a result of incorrect Apache configuration. In addition, you must have MySQL installed as a prerequisite. This article will go over how to resolve this problem and continue your progress with phpMyAdmin.
Fix phpMyAdmin URL Not Found
Open terminal in your Ubuntu and type the following command to access the Apache configuration file
sudo -H gedit /etc/apache2/apache2.conf
After typing the said command, type the following command to setup the configuration file of Apache to include and recognize phpMyAdmin
Include /etc/phpmyadmin/apache.conf
Then restart the Apache service by typing this command
/etc/init.d/apache2 restart
And there You go, Your phpMyAdmin can now be accessed through localhost/phpmyadmin
References:
https://help.ubuntu.com/community/ApacheMySQLPHP#Troubleshooting_Phpmyadmin_.26_mysql-workbench
https://upload.wikimedia.org/wikipedia/commons/4/4f/PhpMyAdmin_logo.svg