PHPMYADMIN in RedH

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 https://files.phpmyadmin.net/phpMyAdmin/5.2.0/phpMyAdmin-5.2.0-all-languages.tar.gz

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:

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

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

http://192.168.7.40:7979/sharique/

http://192.168.7.40:7979/phpmyadmin

Leave a Reply

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