{"id":14414,"date":"2025-06-13T05:51:04","date_gmt":"2025-06-13T05:51:04","guid":{"rendered":"https:\/\/greenwebpage.com\/community\/?p=14414"},"modified":"2025-06-13T05:51:05","modified_gmt":"2025-06-13T05:51:05","slug":"how-to-install-phpmyadmin-on-debian-12","status":"publish","type":"post","link":"https:\/\/greenwebpage.com\/community\/how-to-install-phpmyadmin-on-debian-12\/","title":{"rendered":"How to Install phpMyAdmin on Debian 12"},"content":{"rendered":"\n<p>phpMyAdmin is a\u2002free and open-source web-based database management tool written in PHP. With phpMyAdmin installed on Debian 12, system administrators and developers have a visual front end to aid in managing databases easily. Once set up and installed, it allows you to perform database management tasks on a\u2002running MySQL server via a web browser.<\/p>\n\n\n\n<p>For new users, the command line can be complex when trying to manage MySQL or MariaDB databases. This is where phpMyAdmin, a robust web-based database management tool for MySQL\/MariaDB, can\u2002help. If you are using Debian 12 and you would like to learn how to install phpMyAdmin, you can use this\u2002guide, which will provide you with clear and easy instructions.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><a id=\"post-14414-_wyjxdb76y5r6\"><\/a>How to Install phpMyAdmin on Debian 12: Step-by-Step Guide<\/h2>\n\n\n\n<p>phpMyAdmin is a user-friendly database management tool that is robust, web-based MySQL database client. Since phpMyAdmin is a web application, you\u2002will need a running web server. We\u2019ll\u2002go with Apache, the most commonly used open-source web server.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-14414-_s744skrun8l\"><\/a>Prerequisites for phpMyAdmin Installation<\/h3>\n\n\n\n<p>To install phpMyAdmin on Debian 12, make sure that you\u2002have met the following prerequisites:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>A new installation of Debian\u200212 with root or sudo privileges<\/li>\n\n\n\n<li>Apache web server or Nginx (this guide will be using\u2002Apache)<\/li>\n\n\n\n<li>Database server (MySQL\u2002or MariaDB)<\/li>\n\n\n\n<li>PHP with necessary extensions<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-14414-_hjyqo0bxu3z6\"><\/a>Step 1: Update Debian 12 System Packages<\/h3>\n\n\n\n<p>First of all, make sure your system is up-to-date with all the latest package information\u2002and security updates. This is an important step in\u2002ensuring your system is balanced and secure.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>sudo apt update &amp;&amp; sudo apt upgrade -y<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1143\" height=\"437\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-1.png\" alt=\"sudo apt update &amp;&amp; sudo apt upgrade -y\" class=\"wp-image-14415\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-1.png 1143w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-1-300x115.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-1-1024x392.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-1-768x294.png 768w\" sizes=\"(max-width: 1143px) 100vw, 1143px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>This command refreshes the whole list of packages and upgrades all installed\u2002packages to their latest available versions. The -y\u2002option automatically answers all prompts, and makes the updating process more seamless.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-14414-_bu2fujggybkc\"><\/a>Step 2: Install Apache (Web Server)<\/h3>\n\n\n\n<p>phpMyAdmin is\u2002mostly used with Apache. The first step to use a working version is to install Apache on your Debian 12\u2002with the command:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>sudo apt install apache2 -y<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"1146\" height=\"492\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-2.png\" alt=\"sudo apt install apache2 -y\" class=\"wp-image-14416\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-2.png 1146w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-2-300x129.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-2-1024x440.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-2-768x330.png 768w\" sizes=\"(max-width: 1146px) 100vw, 1146px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Once installed, start Apache and enable it to start\u2002on boot:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>sudo systemctl start apache2<\/p>\n<p>sudo systemctl enable apache2<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"1154\" height=\"266\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-3.png\" alt=\"Start and enable Apache\" class=\"wp-image-14417\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-3.png 1154w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-3-300x69.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-3-1024x236.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-3-768x177.png 768w\" sizes=\"(max-width: 1154px) 100vw, 1154px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Verify\u2002the installation of Apache with its status:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>sudo systemctl status apache2<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1147\" height=\"601\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-4.png\" alt=\"sudo systemctl status apache2\" class=\"wp-image-14418\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-4.png 1147w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-4-300x157.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-4-1024x537.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-4-768x402.png 768w\" sizes=\"(max-width: 1147px) 100vw, 1147px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>You should get an output as shown above indicating that Apache are\u2002up and running on your Debian 12 system.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-14414-_pu8wpk7n5wqk\"><\/a>Step 3: Install and Secure MariaDB or MySQL<\/h3>\n\n\n\n<p>If you have not yet installed a database server, install MariaDB, an open-source,\u2002fully compatible drop-in replacement for MySQL.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>sudo apt install mariadb-server mariadb-client -y<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1142\" height=\"435\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-5.png\" alt=\"sudo apt install mariadb-server mariadb-client -y\" class=\"wp-image-14419\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-5.png 1142w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-5-300x114.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-5-1024x390.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-5-768x293.png 768w\" sizes=\"(max-width: 1142px) 100vw, 1142px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Next, run the commands below to set up MariaDB to automatically start up when the server boots.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>sudo mysql_secure_installation<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1148\" height=\"513\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-6.png\" alt=\"sudo mysql_secure_installation\" class=\"wp-image-14420\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-6.png 1148w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-6-300x134.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-6-1024x458.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-6-768x343.png 768w\" sizes=\"(max-width: 1148px) 100vw, 1148px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Now you should be prompted to answer a few questions<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Set a root password<\/li>\n\n\n\n<li>Remove anonymous users<\/li>\n\n\n\n<li>Disallow root login remotely<\/li>\n\n\n\n<li>Remove the test database<\/li>\n\n\n\n<li>Reload privilege tables <\/li>\n<\/ul>\n\n\n\n<p>Select yes (y) to each prompt, and\u2002you will secure your database server.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-14414-_ieij7pi092dh\"><\/a>Step 4: Install PHP and Required Extensions<\/h3>\n\n\n\n<p>phpMyAdmin is based on PHP, so\u2002install PHP and some related modules for the best usability:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>sudo apt install php php-mysql php-mbstring php-zip php-gd php-json php-curl libapache2-mod-php -y<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1144\" height=\"565\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-7.png\" alt=\"sudo apt install php php-mysql php-mbstring php-zip php-gd php-json php-curl libapache2-mod-php -y\" class=\"wp-image-14421\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-7.png 1144w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-7-300x148.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-7-1024x506.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-7-768x379.png 768w\" sizes=\"(max-width: 1144px) 100vw, 1144px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Note that\u2002those PHP extensions are essential:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>php-mysql:\u2002This allows PHP and MySQL to talk to one another.<\/li>\n\n\n\n<li>php-mbstring: A module for PHP applications that need multi-byte\u2002string functions<\/li>\n\n\n\n<li>php-zip: Enables zip archive handling functionality<\/li>\n\n\n\n<li>php-gd: For\u2002image function processing<\/li>\n\n\n\n<li>php-json: A module about the processing of JSON\u2002data.<\/li>\n\n\n\n<li>php-curl:\u2002Allows you to make HTTP requests<\/li>\n<\/ul>\n\n\n\n<p>To load the PHP\u2002module, Apache needs to be restarted:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>sudo systemctl restart apache2<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1138\" height=\"106\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-8.png\" alt=\"sudo systemctl restart apache2\" class=\"wp-image-14422\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-8.png 1138w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-8-300x28.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-8-1024x95.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-8-768x72.png 768w\" sizes=\"(max-width: 1138px) 100vw, 1138px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-14414-_8oer8irr1vok\"><\/a>Step 5: Download and install phpMyAdmin<\/h3>\n\n\n\n<p>If you prefer managing your databases with phpMyAdmin, download and\u2002install phpMyAdmin as follows.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>sudo apt install phpmyadmin -y<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1140\" height=\"458\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-9.png\" alt=\"sudo apt install phpmyadmin -y\" class=\"wp-image-14423\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-9.png 1140w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-9-300x121.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-9-1024x411.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-9-768x309.png 768w\" sizes=\"(max-width: 1140px) 100vw, 1140px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>To get the stable version, you have to install phpMyAdmin from Debian 12 repository (not the \u201coldstable\u201d one we\u2019ve seen\u2002above).<\/p>\n\n\n\n<p>At the time of installation,\u2002you will receive multiple configuration prompts. Select web server: apache2<strong>.<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1145\" height=\"726\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-10.png\" alt=\"Configure web server for phpmyadmin\" class=\"wp-image-14424\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-10.png 1145w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-10-300x190.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-10-1024x649.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-10-768x487.png 768w\" sizes=\"(max-width: 1145px) 100vw, 1145px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Configure database: \u201cYes\u201d will automatically configure\u2002the database for you:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1151\" height=\"668\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-11.png\" alt=\"Configure database for phpmyadmin\" class=\"wp-image-14425\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-11.png 1151w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-11-300x174.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-11-1024x594.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-11-768x446.png 768w\" sizes=\"(max-width: 1151px) 100vw, 1151px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Use\u2002a strong password for phpMyAdmin&#8217;s database user:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1145\" height=\"619\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-12.png\" alt=\"Configure password for phpmyadmin\" class=\"wp-image-14426\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-12.png 1145w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-12-300x162.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-12-1024x554.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-12-768x415.png 768w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-12-960x520.png 960w\" sizes=\"(max-width: 1145px) 100vw, 1145px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>It sets up Apache to host phpMyAdmin and some\u2002needed database tables.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-14414-_910hjez3cndq\"><\/a>Step 6: Configure Apache for phpMyAdmin<\/h3>\n\n\n\n<p>To complete the installation, you\u2002can tell Apache how to access the new files. It should mean you don&#8217;t need to do any Apache setup at all once\u2002the Debian package is installed, but make sure the Apache config and VirtualHosts files are there:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>sudo ls \/etc\/apache2\/conf-enabled\/ | grep phpmyadmin<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1144\" height=\"139\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-13.png\" alt=\"sudo ls \/etc\/apache2\/conf-enabled\/ | grep phpmyadmin\" class=\"wp-image-14427\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-13.png 1144w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-13-300x36.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-13-1024x124.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-13-768x93.png 768w\" sizes=\"(max-width: 1144px) 100vw, 1144px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>If there is no phpMyAdmin configuration file, enable it\u2002yourself:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>sudo ln -s \/etc\/phpmyadmin\/apache.conf \/etc\/apache2\/conf-available\/phpmyadmin.conf<\/p>\n<p>sudo a2enconf phpmyadmin<\/p>\n<p>sudo systemctl reload apache2<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1152\" height=\"360\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-14.png\" alt=\"sudo systemctl reload apache2\" class=\"wp-image-14428\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-14.png 1152w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-14-300x94.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-14-1024x320.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-14-768x240.png 768w\" sizes=\"(max-width: 1152px) 100vw, 1152px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Finally,\u2002restart Apache to take the configuration changes into effect:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>sudo systemctl restart apache2<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1150\" height=\"114\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-15.png\" alt=\"sudo systemctl restart apache2\" class=\"wp-image-14429\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-15.png 1150w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-15-300x30.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-15-1024x102.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-15-768x76.png 768w\" sizes=\"(max-width: 1150px) 100vw, 1150px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-14414-_efej30qly8j\"><\/a>Step 7: Create MySQL User for phpMyAdmin Access<\/h3>\n\n\n\n<p>For security purposes, you do not use the root MySQL user, and do not use that user with\u2002phpMyAdmin.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>sudo mysql -u root -p<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1150\" height=\"430\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-16.png\" alt=\"sudo mysql -u root -p\" class=\"wp-image-14430\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-16.png 1150w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-16-300x112.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-16-1024x383.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-16-768x287.png 768w\" sizes=\"(max-width: 1150px) 100vw, 1150px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>And now at the MySQL prompt,\u2002type these commands:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>CREATE USER &#8216;phpmyadmin_user&#8217;@&#8217;localhost&#8217; IDENTIFIED BY &#8216;strong_password_here&#8217;;<\/p>\n<p>GRANT ALL PRIVILEGES ON *.* TO &#8216;phpmyadmin_user&#8217;@&#8217;localhost&#8217; WITH GRANT OPTION;<\/p>\n<p>FLUSH PRIVILEGES;<\/p>\n<p>EXIT;<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1150\" height=\"515\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-17.png\" alt=\"GRANT ALL PRIVILEGES ON *.* TO 'phpmyadmin_user'@'localhost' WITH GRANT OPTION;\" class=\"wp-image-14431\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-17.png 1150w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-17-300x134.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-17-1024x459.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-17-768x344.png 768w\" sizes=\"(max-width: 1150px) 100vw, 1150px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Make sure to substitute your <strong>strong_password_here <\/strong>with a secure password according\u2002to best practice.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-14414-_nu3gxxevbcd7\"><\/a>Step\u20028: Setting up the Firewall (If Used)<\/h3>\n\n\n\n<p>If you are using the UFW firewall in Debian 12,\u2002then allow HTTP port traffic:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>sudo ufw allow http<\/p>\n<p>sudo ufw reload<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1145\" height=\"265\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-18.png\" alt=\"sudo ufw reload\" class=\"wp-image-14432\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-18.png 1145w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-18-300x69.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-18-1024x237.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-18-768x178.png 768w\" sizes=\"(max-width: 1145px) 100vw, 1145px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>This means phpMyAdmin is reachable through your web browser.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-14414-_pkj02hdh77o1\"><\/a>Step 9: Log\u2002in to the phpMyAdmin Web Interface<\/h3>\n\n\n\n<p>Whatever you do, launch your web browser and click on:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>http:\/\/your_server_ip\/phpmyadmin<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<p>Or if accessing locally:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>http:\/\/localhost\/phpmyadmin<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1384\" height=\"803\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-19.png\" alt=\"http:\/\/localhost\/phpmyadmin\" class=\"wp-image-14433\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-19.png 1384w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-19-300x174.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-19-1024x594.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-19-768x446.png 768w\" sizes=\"(max-width: 1384px) 100vw, 1384px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Now that phpMyAdmin is installed, you can manage your MySQL databases within a\u2002web-based GUI. Now, connect using the MySQL user name and\u2002password you created in Step 7.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-14414-_a9xhtlh1b8s4\"><\/a>Step 10: Secure phpMyAdmin Installation<\/h3>\n\n\n\n<p>We\u2002can also secure phpMyAdmin further with the following hardening tips.<\/p>\n\n\n\n<p><strong>Change Default Access URL<\/strong><\/p>\n\n\n\n<p>Change Apache\u2002configuration to use a custom URL:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>sudo nano \/etc\/apache2\/conf-enabled\/phpmyadmin.conf<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<p>First step, change the alias from <strong>\/phpmyadmin <\/strong>to something less obvious, such\u2002as <strong>\/database-admin<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1157\" height=\"607\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-20.png\" alt=\"sudo nano \/etc\/apache2\/conf-enabled\/phpmyadmin.conf\" class=\"wp-image-14434\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-20.png 1157w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-20-300x157.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-20-1024x537.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-20-768x403.png 768w\" sizes=\"(max-width: 1157px) 100vw, 1157px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Enable HTTPS<\/strong><\/p>\n\n\n\n<p>Now, install SSL certificate and enable HTTPS secure\u2002access in Apache for PhpMyAdmin. This keeps your logins\u2002and information sent on Internet safe.<\/p>\n\n\n\n<p><strong>Restrict Access by IP<\/strong><\/p>\n\n\n\n<p>To restrict access to phpMyAdmin only from certain IPs, you\u2002can do so by adding access control directives to the configuration file.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><a id=\"post-14414-_k8bmkirzv83s\"><\/a>Uninstall phpMyAdmin on Debian 12<\/h3>\n\n\n\n<p>To remove phpMyAdmin on Debian 12, run sudo apt remove phpmyadmin to uninstall the package while keeping configuration files. You can choose sudo apt purge phpmyadmin to completely remove both\u2002the package and its configuration files.<\/p>\n\n\n\n<p>If you installed phpMyAdmin manually just remove its directory (usually \/var\/www\/html\/phpmyadmin or \/usr\/share\/phpmyadmin) and remove the web server configuration\u2002which points at it.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>sudo apt autoremove phpmyadmin -y<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1144\" height=\"400\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-21.png\" alt=\"sudo apt autoremove phpmyadmin -y\" class=\"wp-image-14435\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-21.png 1144w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-21-300x105.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-21-1024x358.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/word-image-14414-21-768x269.png 768w\" sizes=\"(max-width: 1144px) 100vw, 1144px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>By following these steps, you will have\u2002a safe and working installation. Up to date and secure, phpMyAdmin will perform better and protect\u2002you from many cyber threats.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><a id=\"post-14414-_qea23kgakmd\"><\/a>Conclusion<\/h2>\n\n\n\n<p>To install phpMyAdmin on Debian 12, start by updating your package list: sudo apt update And then install phpMyAdmin\u2002and also required packages: sudo apt install phpmyadmin php-mbstring php-zip php-gd php-json php-curl While installing, choose your web server\u2002(apache2 or nginx), chose \u201cYes\u201d to configure the database with dbconfig-common and create a password for phpMyAdmin to log into the application.<\/p>\n\n\n\n<p>After that, enable required PHP extensions using sudo phpenmod mbstring and\u2002restart your webserver by typing sudo systemctl restart apache2 (for Apache) or sudo systemctl restart nginx (for Nginx). The you can\u2002access phpmyadmin via web browser with address http:\/\/your-server-ip\/phpmyadmin and login with your MySQL\/MariaDB credentials to manage your databases from a web interface.<\/p>\n\n\n\t\t\t\t\t\t\t<h3 style=\"margin-bottom:20px;display:block;width:100%;margin-top:10px\">Frequently Asked Questions <\/h3>\r\n\t\t\t\t\t\t<style>\r\n\t\t\t\t<style>\r\n#wpsm_accordion_14437 .wpsm_panel-heading{\r\n\tpadding:0px !important;\r\n}\r\n#wpsm_accordion_14437 .wpsm_panel-title {\r\n\tmargin:0px !important; \r\n\ttext-transform:none !important;\r\n\tline-height: 1 !important;\r\n}\r\n#wpsm_accordion_14437 .wpsm_panel-title a{\r\n\ttext-decoration:none;\r\n\toverflow:hidden;\r\n\tdisplay:block;\r\n\tpadding:0px;\r\n\tfont-size: 18px !important;\r\n\tfont-family: Open Sans !important;\r\n\tcolor:#000000 !important;\r\n\tborder-bottom:0px !important;\r\n}\r\n\r\n#wpsm_accordion_14437 .wpsm_panel-title a:focus {\r\noutline: 0px !important;\r\n}\r\n\r\n#wpsm_accordion_14437 .wpsm_panel-title a:hover, #wpsm_accordion_14437 .wpsm_panel-title a:focus {\r\n\tcolor:#000000 !important;\r\n}\r\n#wpsm_accordion_14437 .acc-a{\r\n\tcolor: #000000 !important;\r\n\tbackground-color:#e8e8e8 !important;\r\n\tborder-color: #ddd;\r\n}\r\n#wpsm_accordion_14437 .wpsm_panel-default > .wpsm_panel-heading{\r\n\tcolor: #000000 !important;\r\n\tbackground-color: #e8e8e8 !important;\r\n\tborder-color: #e8e8e8 !important;\r\n\tborder-top-left-radius: 0px;\r\n\tborder-top-right-radius: 0px;\r\n}\r\n#wpsm_accordion_14437 .wpsm_panel-default {\r\n\t\tborder:1px solid transparent !important;\r\n\t}\r\n#wpsm_accordion_14437 {\r\n\tmargin-bottom: 20px;\r\n\toverflow: hidden;\r\n\tfloat: none;\r\n\twidth: 100%;\r\n\tdisplay: block;\r\n}\r\n#wpsm_accordion_14437 .ac_title_class{\r\n\tdisplay: block;\r\n\tpadding-top: 12px;\r\n\tpadding-bottom: 12px;\r\n\tpadding-left: 15px;\r\n\tpadding-right: 15px;\r\n}\r\n#wpsm_accordion_14437  .wpsm_panel {\r\n\toverflow:hidden;\r\n\t-webkit-box-shadow: 0 0px 0px rgba(0, 0, 0, .05);\r\n\tbox-shadow: 0 0px 0px rgba(0, 0, 0, .05);\r\n\t\tborder-radius: 4px;\r\n\t}\r\n#wpsm_accordion_14437  .wpsm_panel + .wpsm_panel {\r\n\t\tmargin-top: 5px;\r\n\t}\r\n#wpsm_accordion_14437  .wpsm_panel-body{\r\n\tbackground-color:#ffffff !important;\r\n\tcolor:#000000 !important;\r\n\tborder-top-color: #e8e8e8 !important;\r\n\tfont-size:16px !important;\r\n\tfont-family: Open Sans !important;\r\n\toverflow: hidden;\r\n\t\tborder: 2px solid #e8e8e8 !important;\r\n\t}\r\n\r\n#wpsm_accordion_14437 .ac_open_cl_icon{\r\n\tbackground-color:#e8e8e8 !important;\r\n\tcolor: #000000 !important;\r\n\tfloat:right !important;\r\n\tpadding-top: 12px !important;\r\n\tpadding-bottom: 12px !important;\r\n\tline-height: 1.0 !important;\r\n\tpadding-left: 15px !important;\r\n\tpadding-right: 15px !important;\r\n\tdisplay: inline-block !important;\r\n}\r\n\r\n\t\t\t\r\n\t\t\t<\/style>\t\r\n\t\t\t<\/style>\r\n\t\t\t<div class=\"wpsm_panel-group\" id=\"wpsm_accordion_14437\" >\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t<!-- Inner panel Start -->\r\n\t\t\t\t\t<div class=\"wpsm_panel wpsm_panel-default\">\r\n\t\t\t\t\t\t<div class=\"wpsm_panel-heading\" role=\"tab\" >\r\n\t\t\t\t\t\t  <h4 class=\"wpsm_panel-title\">\r\n\t\t\t\t\t\t\t<a  class=\"\"  data-toggle=\"collapse\" data-parent=\"#wpsm_accordion_14437 \" href=\"javascript:void(0)\" data-target=\"#ac_14437_collapse1\" onclick=\"do_resize()\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"ac_open_cl_icon fa fa-plus\"><\/span>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t\t<span class=\"ac_title_class\">\r\n\t\t\t\t\t\t\t\t\tWhat is phpMyAdmin?\t\t\t\t\t\t\t\t<\/span>\r\n\t\t\t\t\t\t\t<\/a>\r\n\t\t\t\t\t\t  <\/h4>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t\t<div id=\"ac_14437_collapse1\" class=\"wpsm_panel-collapse collapse \"  >\r\n\t\t\t\t\t\t  <div class=\"wpsm_panel-body\">\r\n\t\t\t\t\t\t\tphpMyAdmin is a web-based tool for managing MySQL or MariaDB databases through a graphical interface.\t\t\t\t\t\t  <\/div>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<!-- Inner panel End -->\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t<!-- Inner panel Start -->\r\n\t\t\t\t\t<div class=\"wpsm_panel wpsm_panel-default\">\r\n\t\t\t\t\t\t<div class=\"wpsm_panel-heading\" role=\"tab\" >\r\n\t\t\t\t\t\t  <h4 class=\"wpsm_panel-title\">\r\n\t\t\t\t\t\t\t<a  class=\"collapsed\"  data-toggle=\"collapse\" data-parent=\"#wpsm_accordion_14437 \" href=\"javascript:void(0)\" data-target=\"#ac_14437_collapse2\" onclick=\"do_resize()\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"ac_open_cl_icon fa fa-plus\"><\/span>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t\t<span class=\"ac_title_class\">\r\n\t\t\t\t\t\t\t\t\tHow do I install phpMyAdmin on Debian 12?\t\t\t\t\t\t\t\t<\/span>\r\n\t\t\t\t\t\t\t<\/a>\r\n\t\t\t\t\t\t  <\/h4>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t\t<div id=\"ac_14437_collapse2\" class=\"wpsm_panel-collapse collapse \"  >\r\n\t\t\t\t\t\t  <div class=\"wpsm_panel-body\">\r\n\t\t\t\t\t\t\tRun <code>sudo apt update<\/code> and then <code>sudo apt install phpmyadmin<\/code>. Follow the on-screen prompts to configure it.\t\t\t\t\t\t  <\/div>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<!-- Inner panel End -->\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t<!-- Inner panel Start -->\r\n\t\t\t\t\t<div class=\"wpsm_panel wpsm_panel-default\">\r\n\t\t\t\t\t\t<div class=\"wpsm_panel-heading\" role=\"tab\" >\r\n\t\t\t\t\t\t  <h4 class=\"wpsm_panel-title\">\r\n\t\t\t\t\t\t\t<a  class=\"collapsed\"  data-toggle=\"collapse\" data-parent=\"#wpsm_accordion_14437 \" href=\"javascript:void(0)\" data-target=\"#ac_14437_collapse3\" onclick=\"do_resize()\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"ac_open_cl_icon fa fa-plus\"><\/span>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t\t<span class=\"ac_title_class\">\r\n\t\t\t\t\t\t\t\t\tWhat web server is required for phpMyAdmin?\t\t\t\t\t\t\t\t<\/span>\r\n\t\t\t\t\t\t\t<\/a>\r\n\t\t\t\t\t\t  <\/h4>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t\t<div id=\"ac_14437_collapse3\" class=\"wpsm_panel-collapse collapse \"  >\r\n\t\t\t\t\t\t  <div class=\"wpsm_panel-body\">\r\n\t\t\t\t\t\t\tYou need a working Apache or Nginx web server with PHP support installed.\t\t\t\t\t\t  <\/div>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<!-- Inner panel End -->\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t<!-- Inner panel Start -->\r\n\t\t\t\t\t<div class=\"wpsm_panel wpsm_panel-default\">\r\n\t\t\t\t\t\t<div class=\"wpsm_panel-heading\" role=\"tab\" >\r\n\t\t\t\t\t\t  <h4 class=\"wpsm_panel-title\">\r\n\t\t\t\t\t\t\t<a  class=\"collapsed\"  data-toggle=\"collapse\" data-parent=\"#wpsm_accordion_14437 \" href=\"javascript:void(0)\" data-target=\"#ac_14437_collapse4\" onclick=\"do_resize()\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"ac_open_cl_icon fa fa-plus\"><\/span>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t\t<span class=\"ac_title_class\">\r\n\t\t\t\t\t\t\t\t\tHow do I access phpMyAdmin after installation?\t\t\t\t\t\t\t\t<\/span>\r\n\t\t\t\t\t\t\t<\/a>\r\n\t\t\t\t\t\t  <\/h4>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t\t<div id=\"ac_14437_collapse4\" class=\"wpsm_panel-collapse collapse \"  >\r\n\t\t\t\t\t\t  <div class=\"wpsm_panel-body\">\r\n\t\t\t\t\t\t\tOpen your browser and go to <code>http:\/\/localhost\/phpmyadmin<\/code> or your server\u2019s IP address followed by <code>\/phpmyadmin.<\/code>\t\t\t\t\t\t  <\/div>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<!-- Inner panel End -->\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t<!-- Inner panel Start -->\r\n\t\t\t\t\t<div class=\"wpsm_panel wpsm_panel-default\">\r\n\t\t\t\t\t\t<div class=\"wpsm_panel-heading\" role=\"tab\" >\r\n\t\t\t\t\t\t  <h4 class=\"wpsm_panel-title\">\r\n\t\t\t\t\t\t\t<a  class=\"collapsed\"  data-toggle=\"collapse\" data-parent=\"#wpsm_accordion_14437 \" href=\"javascript:void(0)\" data-target=\"#ac_14437_collapse5\" onclick=\"do_resize()\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"ac_open_cl_icon fa fa-plus\"><\/span>\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t\t<span class=\"ac_title_class\">\r\n\t\t\t\t\t\t\t\t\tWhat PHP extensions are needed for phpMyAdmin?\t\t\t\t\t\t\t\t<\/span>\r\n\t\t\t\t\t\t\t<\/a>\r\n\t\t\t\t\t\t  <\/h4>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t\t<div id=\"ac_14437_collapse5\" class=\"wpsm_panel-collapse collapse \"  >\r\n\t\t\t\t\t\t  <div class=\"wpsm_panel-body\">\r\n\t\t\t\t\t\t\tRequired extensions include <code>mbstring<\/code>, <code>zip<\/code>, <code>gd<\/code>, <code>json<\/code>, and <code>mysqli<\/code>.\t\t\t\t\t\t  <\/div>\r\n\t\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<\/div>\r\n\t\t\t\t\t<!-- Inner panel End -->\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\t<\/div>\r\n\t\t\t\r\n<script type=\"text\/javascript\">\r\n\t\r\n\t\tfunction do_resize(){\r\n\r\n\t\t\tvar width=jQuery( '.wpsm_panel .wpsm_panel-body iframe' ).width();\r\n\t\t\tvar height=jQuery( '.wpsm_panel .wpsm_panel-body iframe' ).height();\r\n\r\n\t\t\tvar toggleSize = true;\r\n\t\t\tjQuery('iframe').animate({\r\n\t\t\t    width: toggleSize ? width : 640,\r\n\t\t\t    height: toggleSize ? height : 360\r\n\t\t\t  }, 250);\r\n\r\n\t\t\t  toggleSize = !toggleSize;\r\n\t\t}\r\n\t\t\r\n<\/script>\t\n\n    <div class=\"xs_social_share_widget xs_share_url after_content \t\tmain_content  wslu-style-1 wslu-share-box-shaped wslu-fill-colored wslu-none wslu-share-horizontal wslu-theme-font-no wslu-main_content\">\n\n\t\t\n        <ul>\n\t\t\t        <\/ul>\n    <\/div> \n","protected":false},"excerpt":{"rendered":"<p>phpMyAdmin is a\u2002free and open-source web-based database management tool written in PHP. With phpMyAdmin installed on Debian 12, system administrators and developers have a visual front end to aid in managing databases easily. Once set up and installed, it allows you to perform database management tasks on a\u2002running MySQL server via a web browser. For [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":14441,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[43],"tags":[854,297,601,250,853],"class_list":["post-14414","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-database-management","tag-debian-12","tag-mariadb","tag-mysql","tag-phpmyadmin"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Install phpMyAdmin on Debian 12<\/title>\n<meta name=\"description\" content=\"If you are using Debian 12 and you would like to learn how to install phpMyAdmin, you can use this\u2002guide. Learn more!\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/greenwebpage.com\/community\/how-to-install-phpmyadmin-on-debian-12\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Install phpMyAdmin on Debian 12\" \/>\n<meta property=\"og:description\" content=\"If you are using Debian 12 and you would like to learn how to install phpMyAdmin, you can use this\u2002guide. Learn more!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/greenwebpage.com\/community\/how-to-install-phpmyadmin-on-debian-12\/\" \/>\n<meta property=\"og:site_name\" content=\"Greenwebpage Community\" \/>\n<meta property=\"article:published_time\" content=\"2025-06-13T05:51:04+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-06-13T05:51:05+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/How-to-Install-phpMyAdmin-on-Debian12.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1104\" \/>\n\t<meta property=\"og:image:height\" content=\"624\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Karim Buzdar\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Karim Buzdar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"10 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-phpmyadmin-on-debian-12\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-phpmyadmin-on-debian-12\/\"},\"author\":{\"name\":\"Karim Buzdar\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/467c100c1d017bc081473ee0440680c8\"},\"headline\":\"How to Install phpMyAdmin on Debian 12\",\"datePublished\":\"2025-06-13T05:51:04+00:00\",\"dateModified\":\"2025-06-13T05:51:05+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-phpmyadmin-on-debian-12\/\"},\"wordCount\":1263,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/#organization\"},\"image\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-phpmyadmin-on-debian-12\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/How-to-Install-phpMyAdmin-on-Debian12.jpg\",\"keywords\":[\"Database Management\",\"Debian 12\",\"MariaDB\",\"MySQL\",\"phpMyAdmin\"],\"articleSection\":[\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/greenwebpage.com\/community\/how-to-install-phpmyadmin-on-debian-12\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-phpmyadmin-on-debian-12\/\",\"url\":\"https:\/\/greenwebpage.com\/community\/how-to-install-phpmyadmin-on-debian-12\/\",\"name\":\"How to Install phpMyAdmin on Debian 12\",\"isPartOf\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-phpmyadmin-on-debian-12\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-phpmyadmin-on-debian-12\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/How-to-Install-phpMyAdmin-on-Debian12.jpg\",\"datePublished\":\"2025-06-13T05:51:04+00:00\",\"dateModified\":\"2025-06-13T05:51:05+00:00\",\"description\":\"If you are using Debian 12 and you would like to learn how to install phpMyAdmin, you can use this\u2002guide. Learn more!\",\"breadcrumb\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-phpmyadmin-on-debian-12\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/greenwebpage.com\/community\/how-to-install-phpmyadmin-on-debian-12\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-phpmyadmin-on-debian-12\/#primaryimage\",\"url\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/How-to-Install-phpMyAdmin-on-Debian12.jpg\",\"contentUrl\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/How-to-Install-phpMyAdmin-on-Debian12.jpg\",\"width\":1104,\"height\":624,\"caption\":\"How to Install phpMyAdmin on Debian12\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-phpmyadmin-on-debian-12\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/greenwebpage.com\/community\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install phpMyAdmin on Debian 12\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#website\",\"url\":\"https:\/\/greenwebpage.com\/community\/\",\"name\":\"Greenwebpage Community\",\"description\":\"Get online in three steps with our wide range of web hosting solutions. Choose from professional business to enterprise options designed to meet your needs.\",\"publisher\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/greenwebpage.com\/community\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#organization\",\"name\":\"Greenwebpage Community\",\"url\":\"https:\/\/greenwebpage.com\/community\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/10\/cropped-logomic.png\",\"contentUrl\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/10\/cropped-logomic.png\",\"width\":512,\"height\":512,\"caption\":\"Greenwebpage Community\"},\"image\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/467c100c1d017bc081473ee0440680c8\",\"name\":\"Karim Buzdar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/0628fcbcddd9bc5486245d2cf4a904dbcdeac9ad6c3098f49237094e9d513d0c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/0628fcbcddd9bc5486245d2cf4a904dbcdeac9ad6c3098f49237094e9d513d0c?s=96&d=mm&r=g\",\"caption\":\"Karim Buzdar\"},\"sameAs\":[\"https:\/\/greenwebpage.com\"],\"url\":\"https:\/\/greenwebpage.com\/community\/author\/karim\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Install phpMyAdmin on Debian 12","description":"If you are using Debian 12 and you would like to learn how to install phpMyAdmin, you can use this\u2002guide. Learn more!","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/greenwebpage.com\/community\/how-to-install-phpmyadmin-on-debian-12\/","og_locale":"en_US","og_type":"article","og_title":"How to Install phpMyAdmin on Debian 12","og_description":"If you are using Debian 12 and you would like to learn how to install phpMyAdmin, you can use this\u2002guide. Learn more!","og_url":"https:\/\/greenwebpage.com\/community\/how-to-install-phpmyadmin-on-debian-12\/","og_site_name":"Greenwebpage Community","article_published_time":"2025-06-13T05:51:04+00:00","article_modified_time":"2025-06-13T05:51:05+00:00","og_image":[{"width":1104,"height":624,"url":"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/How-to-Install-phpMyAdmin-on-Debian12.jpg","type":"image\/jpeg"}],"author":"Karim Buzdar","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Karim Buzdar","Est. reading time":"10 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/greenwebpage.com\/community\/how-to-install-phpmyadmin-on-debian-12\/#article","isPartOf":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-install-phpmyadmin-on-debian-12\/"},"author":{"name":"Karim Buzdar","@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/467c100c1d017bc081473ee0440680c8"},"headline":"How to Install phpMyAdmin on Debian 12","datePublished":"2025-06-13T05:51:04+00:00","dateModified":"2025-06-13T05:51:05+00:00","mainEntityOfPage":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-install-phpmyadmin-on-debian-12\/"},"wordCount":1263,"commentCount":0,"publisher":{"@id":"https:\/\/greenwebpage.com\/community\/#organization"},"image":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-install-phpmyadmin-on-debian-12\/#primaryimage"},"thumbnailUrl":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/How-to-Install-phpMyAdmin-on-Debian12.jpg","keywords":["Database Management","Debian 12","MariaDB","MySQL","phpMyAdmin"],"articleSection":["Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/greenwebpage.com\/community\/how-to-install-phpmyadmin-on-debian-12\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/greenwebpage.com\/community\/how-to-install-phpmyadmin-on-debian-12\/","url":"https:\/\/greenwebpage.com\/community\/how-to-install-phpmyadmin-on-debian-12\/","name":"How to Install phpMyAdmin on Debian 12","isPartOf":{"@id":"https:\/\/greenwebpage.com\/community\/#website"},"primaryImageOfPage":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-install-phpmyadmin-on-debian-12\/#primaryimage"},"image":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-install-phpmyadmin-on-debian-12\/#primaryimage"},"thumbnailUrl":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/How-to-Install-phpMyAdmin-on-Debian12.jpg","datePublished":"2025-06-13T05:51:04+00:00","dateModified":"2025-06-13T05:51:05+00:00","description":"If you are using Debian 12 and you would like to learn how to install phpMyAdmin, you can use this\u2002guide. Learn more!","breadcrumb":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-install-phpmyadmin-on-debian-12\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/greenwebpage.com\/community\/how-to-install-phpmyadmin-on-debian-12\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/greenwebpage.com\/community\/how-to-install-phpmyadmin-on-debian-12\/#primaryimage","url":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/How-to-Install-phpMyAdmin-on-Debian12.jpg","contentUrl":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/06\/How-to-Install-phpMyAdmin-on-Debian12.jpg","width":1104,"height":624,"caption":"How to Install phpMyAdmin on Debian12"},{"@type":"BreadcrumbList","@id":"https:\/\/greenwebpage.com\/community\/how-to-install-phpmyadmin-on-debian-12\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/greenwebpage.com\/community\/"},{"@type":"ListItem","position":2,"name":"How to Install phpMyAdmin on Debian 12"}]},{"@type":"WebSite","@id":"https:\/\/greenwebpage.com\/community\/#website","url":"https:\/\/greenwebpage.com\/community\/","name":"Greenwebpage Community","description":"Get online in three steps with our wide range of web hosting solutions. Choose from professional business to enterprise options designed to meet your needs.","publisher":{"@id":"https:\/\/greenwebpage.com\/community\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/greenwebpage.com\/community\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/greenwebpage.com\/community\/#organization","name":"Greenwebpage Community","url":"https:\/\/greenwebpage.com\/community\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/logo\/image\/","url":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/10\/cropped-logomic.png","contentUrl":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/10\/cropped-logomic.png","width":512,"height":512,"caption":"Greenwebpage Community"},"image":{"@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/467c100c1d017bc081473ee0440680c8","name":"Karim Buzdar","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/0628fcbcddd9bc5486245d2cf4a904dbcdeac9ad6c3098f49237094e9d513d0c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0628fcbcddd9bc5486245d2cf4a904dbcdeac9ad6c3098f49237094e9d513d0c?s=96&d=mm&r=g","caption":"Karim Buzdar"},"sameAs":["https:\/\/greenwebpage.com"],"url":"https:\/\/greenwebpage.com\/community\/author\/karim\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/posts\/14414","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/comments?post=14414"}],"version-history":[{"count":4,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/posts\/14414\/revisions"}],"predecessor-version":[{"id":14440,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/posts\/14414\/revisions\/14440"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/media\/14441"}],"wp:attachment":[{"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/media?parent=14414"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/categories?post=14414"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/tags?post=14414"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}