How to Install phpMyAdmin on AlmaLinux 9


phpMyAdmin requires a standalone Database or as part of the LAMP stack, installed and running on the system.

For detailed installation, refer to LAMP Stack on Almalinux 9

This guide will work on any AlmaLinux 9 system including KVM, OpenVZ, or Dedicated Servers.

Enabling the EPEL and REMI repository,

dnf install
dnf install

Install the php-fedora-autoloader,

dnf install

Install the phpMyAdmin package,

dnf --enablerepo=remi install phpMyAdmin

phpMyAdmin inserts its configuration into the Apache webserver (httpd), to load this new configuration we restart httpd,

service httpd restart

Edit file phpMyAdmin.conf

nano /etc/httpd/conf.d/phpMyAdmin.conf

And replace at the top.

<Directory /usr/share/phpMyAdmin/>
   AddDefaultCharset UTF-8

   <IfModule mod_authz_core.c>
     # Apache 2.4
       #Require ip
       #Require ip ::1
       Require all granted
   <IfModule !mod_authz_core.c>
     # Apache 2.2
     Order Deny,Allow
     Deny from All
     Allow from
     Allow from ::1

Create a soft link of the phpMyAdmin default directory to the standard /var/www/html/ directory

ln -s /usr/share/phpMyAdmin/ /var/www/html/phpmyadmin

Accessing phpMyAdmin

Note: Replace the IP address with the actual server's IP address.