Installing phpMyAdmin on Ubuntu with WordPress installed

Are you trying to install phpMyAdmin on Ubuntu with a WordPress site installed on the same server? However, having issues accessing the /phpmyadmin URL?

Installing phpMyAdmin on Ubuntu with preinstalled WordPress

If you’ve installed WordPress onto your Ubuntu server and need to access the https://your-ip-or-domain/phpmyadmin/ URL, you should follow the below steps accordingly.

sudo apt update
sudo apt install phpmyadmin php-mbstring php-gettext
sudo phpenmod mbstring
sudo systemctl restart apache2
sudo ln -s /usr/share/phpmyadmin /var/www/html

Note, the last line is the one you need, should the https://your-ip-or-domain/phpmyadmin/ URL not work.