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
Then restart the Apache service by typing this command
And there You go, Your phpMyAdmin can now be accessed through localhost/phpmyadmin