Install phpMyAdmin on Debian 10 Buster


In this guide, we are going to learn how to install phpMyAdmin on Debian 10 Buster. phpMyAdmin is an opensource tool written in PHP for administering MySQL and MariaDB over the web.

Install phpMyAdmin on Debian 10 Buster


phpMyAdmin requires a web server, PHP and a database in order to operate. To meet the requirements, this guide uses LAMP stack.

To install LAMP stack on Debian 10 Buster, follow the link below;

Install LAMP Stack with MariaDB 10 on Debian 10 Buster

Installing PHP Extensions

There are a number of PHP extensions that are required by phpMyAdmin. However, most of these extensions installs with PHP itself. To install the additional extensions, execute the command below;

apt install php-{mbstring,zip,gd,xml,pear,gettext,cgi}

Download Latest phpMyAdmin

Next step is to install phpMyAdmin on Debian 10 Buster. Therefore, navigate to the downloads page and grab phpMyAdmin archive. phpMyAdmin is the latest stable release as of this writing. You can simply use the wget command.


Verifying phpMyAdmin releases

Once you have downloaded phpMyAdmin archive, you should verify that the signature matches the archive you have downloaded as shown below;

Import the key

gpg --keyserver hkp:// --recv-keys 3D06A59ECE730EB71B511C17CE752F178259BD92

Download the phpMyAdmin archive PGP signature.


Verify the signature:

gpg --verify phpMyAdmin-
gpg: assuming signed data in 'phpMyAdmin-'
gpg: Signature made Tue 04 Jun 2019 12:08:42 PM EDT
gpg:                using RSA key 3D06A59ECE730EB71B511C17CE752F178259BD92
gpg: Good signature from "Isaac Bennetch <[email protected]>" [unknown]
gpg:                 aka "Isaac Bennetch <[email protected]>" [unknown]
gpg: WARNING: This key is not certified with a trusted signature!
gpg:          There is no indication that the signature belongs to the owner.
Primary key fingerprint: 3D06 A59E CE73 0EB7 1B51  1C17 CE75 2F17 8259 BD92

You can verify the checksums too. The SHA256 has for the phpMyAdmin- is 6494e2172354a6621d0accf3445dcc3db3d17c4274fb5a94c9159590f6978bad. To check the SHA256 for the downloaded file, run the command below;

sha256sum phpMyAdmin- 
6494e2172354a6621d0accf3445dcc3db3d17c4274fb5a94c9159590f6978bad  phpMyAdmin-

Great, the hashes match and we are good to proceed.

Extract phpMyAdmin archive to your web server root directory. Since we are using Apache, the web root directory is /var/www/html.

mkdir /var/www/html/phpmyadmin
tar xzf phpMyAdmin- --strip-components=1 -C /var/www/html/phpmyadmin

Configure phpMyAdmin

Copy the sample phpMyAdmin configuration file and rename it as follows;

cp /var/www/html/phpmyadmin/config{.sample,}.inc.php

You should now have;


Next, open the configuration file and create a blowfish secret required for cookie based authentication to encrypt password in cookie. You can generate the secret from Blowfish hash password generator and paste as follows.

vim /var/www/html/phpmyadmin/
 * This is needed for cookie based authentication to encrypt password in
 * cookie. Needs to be 32 chars long.
$cfg['blowfish_secret'] = '$2a$07$VroYYmqJ1bsNvMD1OpTpqOKtLy6dewrUuiwXQOfrjWuz.x4Ko676S'; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */


Set the permissions of the phpMyAdmin configuration file to 660.

chmod 660 /var/www/html/phpmyadmin/

Set the user and group ownership of the phpMyAdmin files to the web server user, www-data if running Apache. If you however have a dedicated user for running phpMyAdmin, then set the user ownership to that user and group ownership to the web server user.

chown -R www-data:www-data /var/www/html/phpmyadmin

Restart Web Server Service

Next, restart the web server. Apache is used in this guide.

systemctl restart apache2

Accessing phpMyAdmin

Navigate to your browser and enter the IP address of your phpMyAdmin server, http://<server-IP>/phpmyadmin.

Install phpMyAdmin on Debian 10 Buster
phpMyAdmin on Debian 10 Buster

There you go. phpMyAdmin is installed on Debian 10 Buster. Enjoy.

Related Tutorials:

Install phpMyAdmin with Nginx on Fedora 30

Install phpMyAdmin with Apache on Fedora 30

Install phpMyAdmin with Nginx on FreeBSD 12

How to Install phpMyAdmin on FreeBSD 12


We're passionate about sharing our knowledge and experiences with you through our blog. If you appreciate our efforts, consider buying us a virtual coffee. Your support keeps us motivated and enables us to continually improve, ensuring that we can provide you with the best content possible. Thank you for being a coffee-fueled champion of our work!

Photo of author
I am the Co-founder of, Linux and the whole FOSS enthusiast, Linux System Admin and a Blue Teamer who loves to share technological tips and hacks with others as a way of sharing knowledge as: "In vain have you acquired knowledge if you have not imparted it to others".

2 thoughts on “Install phpMyAdmin on Debian 10 Buster”

Leave a Comment