Step 1 — Install PHPMyAdmin
sudo apt-get install phpmyadmin
Now you will see two options. For our installation, we won’t select one of them. Press the tab button and enter OK. Enter the password of MySQL when asked.
Step 2 — Setup PHPMyAdmin for NGINX
sudo ln -s /usr/share/phpmyadmin /var/www/html
Step 3 — reload NGINX server
sudo systemctl reload nginx OR sudo service nginx reload