How to Install phpMyAdmin with Nginx on Ubuntu 26.04

To install phpMyAdmin with Nginx on Ubuntu 26.04, add a PHP-FPM snippet for example.com, then open the UI.

Step 1 : Update.

Step 2 : Install phpMyAdmin. Debconf: leave the web server list empty (Tab, then OK); dbconfig = Yes; set an application password.

Step 3 : Create an Nginx snippet that serves /phpmyadmin through PHP-FPM.

Step 4 : Open /etc/nginx/sites-available/example.com and add this line inside server { }:

Step 5 : Test and restart.

Step 6 : Open the login page in a browser.

Step 7 : Username (a MariaDB user, for example root) and Password, then Go.

Step 8 : Confirm the home page after login.

You have installed phpMyAdmin with Nginx on Ubuntu 26.04.