=== phpmyadmin-with-Apach2 & PHP7.3 ===
sudo apt install -y php-json php-mbstring php-xml
sudo apt install -y php-json php-mbstring php-xml
wget https://files.phpmyadmin.net/phpMyAdmin/5.1.1/phpMyAdmin-5.1.1-all-languages.tar.gz
tar -zxvf phpMyAdmin-5.1.1-all-languages.tar.gz
sudo mv phpMyAdmin-5.1.1-all-languages /usr/share/phpmyadmin
sudo cp -pr /usr/share/phpmyadmin/config.sample.inc.php /usr/share/phpmyadmin/config.inc.php
sudo vi /usr/share/phpmyadmin/config.inc.php
**Generate a blowfish secret and update the secret in the configuration file.**
$cfg['blowfish_secret'] = 'CfX1la/aG83gx1{7rADus,iqz8RzeV8x'; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */
* $cfg['Servers'][$i]['controlhost'] = 'localhost';
* $cfg['Servers'][$i]['controluser'] = 'pma';
* $cfg['Servers'][$i]['controlpass'] = 'pmapass';
* $cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';
* $cfg['Servers'][$i]['bookmarktable'] = 'pma__bookmark';
* $cfg['Servers'][$i]['relation'] = 'pma__relation';
* $cfg['Servers'][$i]['table_info'] = 'pma__table_info';
* $cfg['Servers'][$i]['table_coords'] = 'pma__table_coords';
* $cfg['Servers'][$i]['pdf_pages'] = 'pma__pdf_pages';
* $cfg['Servers'][$i]['column_info'] = 'pma__column_info';
* $cfg['Servers'][$i]['history'] = 'pma__history';
* $cfg['Servers'][$i]['table_uiprefs'] = 'pma__table_uiprefs';
* $cfg['Servers'][$i]['tracking'] = 'pma__tracking';
* $cfg['Servers'][$i]['userconfig'] = 'pma__userconfig';
* $cfg['Servers'][$i]['recent'] = 'pma__recent';
* $cfg['Servers'][$i]['favorite'] = 'pma__favorite';
* $cfg['Servers'][$i]['users'] = 'pma__users';
* $cfg['Servers'][$i]['usergroups'] = 'pma__usergroups';
* $cfg['Servers'][$i]['navigationhiding'] = 'pma__navigationhiding';
* $cfg['Servers'][$i]['savedsearches'] = 'pma__savedsearches';
* $cfg['Servers'][$i]['central_columns'] = 'pma__central_columns';
* $cfg['Servers'][$i]['designer_settings'] = 'pma__designer_settings';
* $cfg['Servers'][$i]['export_templates'] = 'pma__export_templates';
''Add the user and grant permission to phpmyadmin’s database''
* CREATE USER 'pma'@'localhost' IDENTIFIED BY 'pmapass';
*
* GRANT ALL PRIVILEGES ON phpmyadmin.* TO 'pma'@'localhost' WITH GRANT OPTION;
*
* FLUSH PRIVILEGES;
*
* **Import the create_tables.sql to create tables for phpmyadmin.**
*
* sudo mysql < /usr/share/phpMyAdmin/sql/create_tables.sql -u root -p
*
*
* **Configure Temp directory:**
* sudo mkdir -p /var/lib/phpmyadmin/tmp
*
* sudo chown -R www-data:www-data /var/lib/phpmyadmin
*
* sudo mkdir /etc/phpmyadmin/
*
* $cfg['TempDir'] = '/var/lib/phpmyadmin/tmp';
**Create a file named phpmyadmin.conf in the /etc/apache2/conf-available/ directory:**
sudo vim /etc/apache2/conf-enabled/phpmyadmin.conf
Alias /phpmyadmin /usr/share/phpmyadmin
Options SymLinksIfOwnerMatch
DirectoryIndex index.php
AddType application/x-httpd-php .php
SetHandler application/x-httpd-php
php_value include_path .
php_admin_value upload_tmp_dir /var/lib/phpmyadmin/tmp
php_admin_value open_basedir /usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/:/usr/share/php/php-gettext/:/usr/share/php/php-php-gettext/:/usr/share/javascript/:/usr/share/php/tcpdf/:/usr/share/doc/phpmyadmin/:/usr/share/php/phpseclib/
php_admin_value mbstring.func_overload 0
AddType application/x-httpd-php .php
SetHandler application/x-httpd-php
php_value include_path .
php_admin_value upload_tmp_dir /var/lib/phpmyadmin/tmp
php_admin_value open_basedir /usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/:/usr/share/php/php-gettext/:/usr/share/php/php-php-gettext/:/usr/share/javascript/:/usr/share/php/tcpdf/:/usr/share/doc/phpmyadmin/:/usr/share/php/phpseclib/
php_admin_value mbstring.func_overload 0
# Authorize for setup
AuthType Basic
AuthName "phpMyAdmin Setup"
AuthUserFile /etc/phpmyadmin/htpasswd.setup
Require valid-user
# Disallow web access to directories that don't need it
Require all denied
Require all denied
Require all denied
https://www.digitalocean.com/community/tutorials/how-to-install-phpmyadmin-from-source-debian-10
https://www.phpmyadmin.net/downloads/
== phpmyadmin-with-nginx ==
https://www.itzgeek.com/how-tos/linux/debian/how-to-install-phpmyadmin-with-nginx-on-debian-10.html