Install and Secure phpMyAdmin with Nginx on Ubuntu
Install phpMyAdmin
sudo apt-get update
sudo apt-get install phpmyadmin
For the Nginx web server to find and serve the phpMyAdmin files correctly, we’ll need to create a symbolic link from the installation files to our Nginx document root directory
sudo ln -s /usr/share/phpmyadmin /var/www/html
Finally, we need to enable the mcrypt
PHP module, which phpMyAdmin relies on. This was installed with phpMyAdmin, so we’ll toggle it on and restart our PHP processor:
sudo phpenmod mcrypt
sudo systemctl restart php7.4-fpm
With that, our phpMyAdmin installation is now operational
http://server_domain_or_IP/phpmyadmin