{"id":3666,"date":"2019-07-18T18:08:38","date_gmt":"2019-07-18T15:08:38","guid":{"rendered":"https:\/\/kifarunix.com\/?p=3666"},"modified":"2019-07-18T18:08:39","modified_gmt":"2019-07-18T15:08:39","slug":"install-phpmyadmin-on-debian-10-buster","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/install-phpmyadmin-on-debian-10-buster\/","title":{"rendered":"Install phpMyAdmin on Debian 10 Buster"},"content":{"rendered":"\n<p>In this guide, we are going to learn how to install phpMyAdmin on Debian 10 Buster. <a rel=\"noreferrer noopener\" aria-label=\"phpMyAdmin (opens in a new tab)\" href=\"https:\/\/www.phpmyadmin.net\/\" target=\"_blank\">phpMyAdmin<\/a> is an opensource tool written in PHP for administering MySQL and MariaDB over the web.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Install phpMyAdmin on Debian 10 Buster<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Prerequisites<\/h3>\n\n\n\n<p>phpMyAdmin requires a web server, PHP and a database in order to operate. To meet the requirements, this guide uses LAMP stack.<\/p>\n\n\n\n<p>To install LAMP stack on Debian 10 Buster, follow the link below;<\/p>\n\n\n\n<p><a rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\" href=\"https:\/\/kifarunix.com\/install-lamp-stack-with-mariadb-10-on-debian-10-buster\/\" target=\"_blank\">Install LAMP Stack with MariaDB 10 on Debian 10 Buster<\/a><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Installing PHP Extensions<\/h4>\n\n\n\n<p>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;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>apt install php-{mbstring,zip,gd,xml,pear,gettext,cgi}<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Download Latest phpMyAdmin<\/h3>\n\n\n\n<p>Next step is to install phpMyAdmin on Debian 10 Buster. Therefore, navigate to the <a rel=\"noreferrer noopener\" aria-label=\"downloads page (opens in a new tab)\" href=\"https:\/\/www.phpmyadmin.net\/downloads\/\" target=\"_blank\">downloads page<\/a> and grab phpMyAdmin archive. phpMyAdmin 4.9.0.1 is the latest stable release as of this writing. You can simply use the <strong>wget<\/strong> command.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>wget https:\/\/files.phpmyadmin.net\/phpMyAdmin\/4.9.0.1\/phpMyAdmin-4.9.0.1-english.tar.gz<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Verifying phpMyAdmin releases<\/h4>\n\n\n\n<p>Once you have downloaded phpMyAdmin archive, you should <a href=\"https:\/\/docs.phpmyadmin.net\/en\/latest\/setup.html#verifying-phpmyadmin-releases\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"verify that the signature (opens in a new tab)\">verify that the signature<\/a> matches the archive you have downloaded as shown below;<\/p>\n\n\n\n<p>Import the key <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>gpg --keyserver hkp:\/\/pgp.mit.edu --recv-keys 3D06A59ECE730EB71B511C17CE752F178259BD92<\/code><\/pre>\n\n\n\n<p>Download the phpMyAdmin archive PGP signature.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>wget https:\/\/files.phpmyadmin.net\/phpMyAdmin\/4.9.0.1\/phpMyAdmin-4.9.0.1-english.tar.gz.asc<\/code><\/pre>\n\n\n\n<p>Verify the signature:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>gpg --verify phpMyAdmin-4.9.0.1-english.tar.gz.asc<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>gpg: assuming signed data in 'phpMyAdmin-4.9.0.1-english.tar.gz'\ngpg: Signature made Tue 04 Jun 2019 12:08:42 PM EDT\ngpg:                using RSA key 3D06A59ECE730EB71B511C17CE752F178259BD92\ngpg: Good signature from \"Isaac Bennetch &lt;bennetch@gmail.com>\" [unknown]\ngpg:                 aka \"Isaac Bennetch &lt;isaac@bennetch.org>\" [unknown]\ngpg: WARNING: This key is not certified with a trusted signature!\ngpg:          There is no indication that the signature belongs to the owner.\nPrimary key fingerprint: 3D06 A59E CE73 0EB7 1B51  1C17 CE75 2F17 8259 BD92<\/code><\/pre>\n\n\n\n<p>You can verify the checksums too. The SHA256 has for the&nbsp;<code>phpMyAdmin-4.9.0.1-english.tar.gz<\/code>&nbsp;is <strong>6494e2172354a6621d0accf3445dcc3db3d17c4274fb5a94c9159590f6978bad<\/strong>. To check the SHA256 for the downloaded file, run the command below;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sha256sum phpMyAdmin-4.9.0.1-english.tar.gz \n6494e2172354a6621d0accf3445dcc3db3d17c4274fb5a94c9159590f6978bad  phpMyAdmin-4.9.0.1-english.tar.gz<\/code><\/pre>\n\n\n\n<p>Great, the hashes match and we are good to proceed.<\/p>\n\n\n\n<p>Extract phpMyAdmin archive to your web server root directory. Since we are using Apache, the web root directory is <strong>\/var\/www\/html<\/strong>.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>mkdir \/var\/www\/html\/phpmyadmin\ntar xzf phpMyAdmin-4.9.0.1-english.tar.gz --strip-components=1 -C \/var\/www\/html\/phpmyadmin<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Configure phpMyAdmin<\/h3>\n\n\n\n<p>Copy the sample phpMyAdmin configuration file and rename it as follows;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>cp \/var\/www\/html\/phpmyadmin\/config{.sample,}.inc.php<\/code><\/pre>\n\n\n\n<p>You should now have;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>\/var\/www\/html\/phpmyadmin\/config.inc.php<\/code><\/pre>\n\n\n\n<p>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 <a rel=\"noreferrer noopener\" aria-label=\"Blowfish hash password generator (opens in a new tab)\" href=\"http:\/\/www.passwordtool.hu\/blowfish-password-hash-generator\" target=\"_blank\">Blowfish hash password generator<\/a> and paste as follows.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>vim \/var\/www\/html\/phpmyadmin\/config.inc.php<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>...\n\/**\n * This is needed for cookie based authentication to encrypt password in\n * cookie. Needs to be 32 chars long.\n *\/\n$cfg['blowfish_secret'] = '$2a$07$VroYYmqJ1bsNvMD1OpTpqOKtLy6dewrUuiwXQOfrjWuz.x4Ko676S'; \/* YOU MUST FILL IN THIS FOR COOKIE AUTH! *\/\n\n\/**\n...<\/code><\/pre>\n\n\n\n<p>Set the permissions of the phpMyAdmin configuration file to <strong>660<\/strong>.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>chmod 660 \/var\/www\/html\/phpmyadmin\/config.inc.php<\/code><\/pre>\n\n\n\n<p>Set the user and group ownership of the phpMyAdmin files to the web server user, <strong>www-data<\/strong> 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.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>chown -R www-data:www-data \/var\/www\/html\/phpmyadmin<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Restart Web Server Service<\/h3>\n\n\n\n<p>Next, restart the web server. Apache is used in this guide.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>systemctl restart apache2<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Accessing phpMyAdmin<\/h3>\n\n\n\n<p>Navigate to your browser and enter the IP address of your phpMyAdmin server, <strong>http:\/\/&lt;server-IP>\/phpmyadmin.<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/07\/phpmyadmin-debian-10-buster.png\"><img loading=\"lazy\" decoding=\"async\" width=\"837\" height=\"430\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/07\/phpmyadmin-debian-10-buster.png\" alt=\"Install phpMyAdmin on Debian 10 Buster\" class=\"wp-image-3673\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/07\/phpmyadmin-debian-10-buster.png 837w, https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/07\/phpmyadmin-debian-10-buster-768x395.png 768w\" sizes=\"(max-width: 837px) 100vw, 837px\" \/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/07\/phpmyadmin-on-debian-10-buster.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1349\" height=\"652\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/07\/phpmyadmin-on-debian-10-buster.png\" alt=\"phpMyAdmin on Debian 10 Buster\" class=\"wp-image-3674\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/07\/phpmyadmin-on-debian-10-buster.png 1349w, https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/07\/phpmyadmin-on-debian-10-buster-768x371.png 768w\" sizes=\"(max-width: 1349px) 100vw, 1349px\" \/><\/a><\/figure>\n\n\n\n<p>There you go. phpMyAdmin is installed on Debian 10 Buster. Enjoy.<\/p>\n\n\n\n<p>Related Tutorials:<\/p>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/install-phpmyadmin-with-nginx-on-fedora-30\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\">Install phpMyAdmin with Nginx on Fedora 30<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/install-phpmyadmin-with-apache-on-fedora-30\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\">Install phpMyAdmin with Apache on Fedora 30<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/install-phpmyadmin-with-nginx-on-freebsd-12\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\">Install phpMyAdmin with Nginx on FreeBSD 12<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/how-to-install-phpmyadmin-on-freebsd-12\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\">How to Install phpMyAdmin on FreeBSD 12<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>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<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"footnotes":""},"categories":[299,121,928,929],"tags":[1039,135,281],"class_list":["post-3666","post","type-post","status-publish","format-standard","hentry","category-database","category-howtos","category-mariadb","category-mysql","tag-debian-10-buster","tag-mysql","tag-phpmyadmin","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-50"],"_links":{"self":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/3666"}],"collection":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/comments?post=3666"}],"version-history":[{"count":4,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/3666\/revisions"}],"predecessor-version":[{"id":3675,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/3666\/revisions\/3675"}],"wp:attachment":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media?parent=3666"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/categories?post=3666"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/tags?post=3666"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}