How To Install phpMyAdmin with Apache on an Ubuntu Server 20.04

Louis SanchezAugust 15th 2021, 7:07

You will need access to a root account or an account with sudo privileges

You will need a LAMP stack (Linux, Apache, MySQL, and PHP)

Step 1 : Install phpMyAdmin with the following commands

sudo apt-get update
sudo apt install phpmyadmin php-zip php-json php-mbstring php-mysql php-curl php-gd

Step 2 : Next, phpmyadmin will ask for web server selection, choose apache2

Step 3 : The installation process will download the necessary packages and then prompt you to configure phpmyadmin. Choose yes to proceed with the configuration process

Step 4 : you will be asked for the new password for the phpmyadmin user. Enter the new password and then confirm it on the next screen:

Step 6 : Once the installation completes, you can access phpMyAdmin at http://ip_or_domain/phpmyadmin