Install phpMyAdmin on CentOS 8

The phpMyAdmin tool is not included in the default CentOS 8 repositories. However, the file can be download manually

sudo mkdir /usr/share/phpmyadmin/

[root@rserver8 ~]# sudo mkdir /usr/share/phpmyadmin/

[root@rserver8 ~]# cd /usr/share/phpmyadmin/

Downloading the 5.2

[root@rserver8 phpmyadmin]# sudo wget

extracting the downloaded phpmyadmin dir

[root@rserver8 phpmyadmin]# sudo tar xzf phpMyAdmin-5.2.0-all-languages.tar.gz

Next, create and set permissions on a temporary phpMyAdmin directory:

[root@rserver8 phpmyadmin]# sudo mkdir /usr/share/phpmyadmin/tmp && sudo chmod 777 /usr/share/phpmyadmin/tmp

Or mkdir /usr/share/phpmyadmin/tmp

chmod 777 /usr/share/phpmyadmin/tmp

[root@rserver8 phpmyadmin]# chown -R apache:apache /usr/share/phpmyadmin

restart the Apache service

[root@rserver8 ~]# systemctl restart httpd

[root@rserver8 ~]# vi /etc/httpd/conf/httpd.conf

Configure Apache for phpMyAdmin

Create an Apache configuration file:


vi /etc/httpd/conf.d/phpmyadmin.conf

[root@rserver8 conf.d]# vi phpmyadmin.conf

Alias can be any things as per your need

Login to assign alias

Leave a Reply

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