Skip to content

AniQ.eu – Tutorials for Tinkerers: Linux, VPN, OpenWRT & More.



Menu
  • Home
  • Blog
  • News
  • Categories
  • About
  • Contact
Menu

phpMyAdmin Installation Guide for Debian 12

Posted on May 18, 2025

Prerequisites:

Installed dependencies in the previous article

You should already have the following installed and working:

  • Apache or Nginx web server
  • PHP with required extensions
  • MySQL/MariaDB server
  • HTTPS configured with Let’s Encrypt
  1. Download phpMyAdmin
root@frhb95653flex:~# wget -P ~/Downloads https://www.phpmyadmin.net/downloads/phpMyAdmin-latest-all-languages.tar.gz

2. Verify the GPG Signature (Optional but Recommended) – Download and import keyring

root@frhb95653flex:~# wget -P ~/Downloads https://files.phpmyadmin.net/phpmyadmin.keyring
cd ~/Downloads
gpg --import phpmyadmin.keyring

3. Download the .asc file that matches your downloaded version:

root@frhb95653flex:~# wget https://www.phpmyadmin.net/downloads/phpMyAdmin-latest-all-languages.tar.gz.asc

4. Verify the archive using the downloaded .asc file:

root@frhb95653flex:~# gpg --verify phpMyAdmin-latest-all-languages.tar.gz.asc

Unpack and Move phpMyAdmin

  1. Create a target directory under Apache’s web root:
sudo mkdir /var/www/html/phpMyAdmin
  1. Extract the downloaded archive to that directory:
sudo tar xvf phpMyAdmin-latest-all-languages.tar.gz --strip-components=1 -C /var/www/html/phpMyAdmin
Configure phpMyAdmin
  1. Copy the sample configuration file:
root@frhb95653flex:~/Downloads# sudo cp /var/www/html/phpMyAdmin/config.sample.inc.php /var/www/html/phpMyAdmin/config.inc.php
  2. Edit the configuration file
root@frhb95653flex:~/Downloads# sudo nano /var/www/html/phpMyAdmin/config.inc.php
  1. Set a secret passphrase for the blowfish cipher:

Find the following line:

$cfg['blowfish_secret'] = '';
Change it to:
$cfg['blowfish_secret'] = 'My_Secret_Passphras3!';

Use a long, secure, random passphrase. Then save and exit the file (Ctrl + X, then Y and Enter). Generate the password on this page and write it down: PMA Blowfish Secret Generator

Secure Permissions

  1. Set proper permissions for the config file
root@frhb95653flex:~/Downloads# sudo chmod 660 /var/www/html/phpMyAdmin/config.inc.php

2. Change ownership of the phpMyAdmin directory:

root@frhb95653flex:~/Downloads# sudo chown -R www-data:www-data /var/www/html/phpMyAdmin
  1. Restart Apache to apply changes:
root@frhb95653flex:~/Downloads# sudo systemctl restart apache2

Access phpMyAdmin in Browser

Open your web browser and navigate to: You set up the login credentials in the previous article.

https://test.aniq.eu/phpMyAdmin/

Source: PMA Blowfish, phoenixNAP

1 thought on “phpMyAdmin Installation Guide for Debian 12”

  1. Pingback: Installation and configuration of a web server with PHP, MySQL, and HTTPS (SSL) support using Let's Encrypt. (Debian 12) - AniQ.eu - Tutorials for Tinkerers: Linux, VPN, OpenWRT & More.

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • 🔧 Installing WireGuard VPN Server on OpenWRT 24.x
  • phpMyAdmin Installation Guide for Debian 12
  • Installation and configuration of a web server with PHP, MySQL, and HTTPS (SSL) support using Let’s Encrypt. (Debian 12)
  • Welcome to AniQ.eu – Where IT Curiosity Comes to Life

Categories

  • ℹ️ General information
  • 🌐Networking
  • 💻 Web Server Setup
pairdrop.aniq.eu
upload.aniq.eu
Log in

DID YOU KNOW?

In 1969, humans first walked on the Moon during NASA's Apollo 11 mission. Neil Armstrong’s iconic words, “That’s one small step for man, one giant leap for mankind,” marked a new era in space exploration.

A LOOK INTO THE FUTURE

By 2035, autonomous vehicles are expected to make up over 25% of all road traffic. With AI-driven transport systems, the world is moving closer to safer, more efficient, and eco-friendly mobility.

HISTORY MEETS INNOVATION

The Library of Alexandria, once the largest and most significant library of the ancient world, inspired the creation of modern digital archives. Today, entire civilizations’ knowledge can be stored on a single chip smaller than a fingernail.

©2025 AniQ.eu – Tutorials for Tinkerers: Linux, VPN, OpenWRT & More. | Design: Newspaperly WordPress Theme