How to Install phpMyAdmin on AlmaLinux 10

Prerequisites:

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 10

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

Enabling the EPEL and REMI repository,

dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
dnf install https://rpms.remirepo.net/enterprise/remi-release-9.rpm

Install the php-fedora-autoloader,

dnf install https://rpms.remirepo.net/enterprise/9/remi/x86_64/php-fedora-autoloader-1.0.1-2.el9.remi.noarch.rpm

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>
        Require all granted
    </IfModule>

    <IfModule !mod_authz_core.c>
        Order Allow,Deny
        Allow from All
    </IfModule>
</Directory>

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

Then restart Apache

systemctl restart httpd

Accessing phpMyAdmin

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

http://ip-address/phpmyadmin/

Output:


CrownCloud - Get a SSD powered KVM VPS at $4.5/month!
Use the code WELCOME for 10% off!

1 GB RAM / 25 GB SSD / 1 CPU Core / 1 TB Bandwidth per month

Available Locations: LAX | MIA | ATL | FRA | AMS