Instalação PHPMYADMIN
Ir para navegação
Ir para pesquisar
Homologado com
Centos 8
Adicionar Repositório
yum install epel-release -y
Instalação Pacotes
dnf install php php-pdo php-pecl-zip php-json php-mbstring php-mysqlnd
Baixar pacote mais recente do PHPMyadmin
wget https://files.phpmyadmin.net/phpMyAdmin/5.0.1/phpMyAdmin-5.0.1-all-languages.zip
Instalação PHPMyadmin
unzip phpMyAdmin-5.0.1-all-languages.zip mv phpMyAdmin-5.0.1-all-languages /usr/share/phpmyadmin mkdir /usr/share/phpmyadmin/tmp chown -R apache:apache /usr/share/phpmyadmin chmod 777 /usr/share/phpmyadmin/tmp
Configurarar PHPMyadmin para acesso remoto
vi /etc/httpd/conf.d/phpmyadmin.conf Adicionar conteudo abaixo Alias /phpmyadmin /usr/share/phpmyadmin <Directory /usr/share/phpmyadmin/> AddDefaultCharset UTF-8 <IfModule mod_authz_core.c> # Apache 2.4 <RequireAny> Require all granted </RequireAny> </IfModule> </Directory> <Directory /usr/share/phpmyadmin/setup/> <IfModule mod_authz_core.c> # Apache 2.4 <RequireAny> Require all granted </RequireAny> </IfModule> </Directory>
Aplicar permissões
chcon -Rv --type=httpd_sys_content_t /usr/share/phpmyadmin/*
Reiniciar Serviço
systemctl restart httpd.service
Realizando o acesso
http://IP/phpmyadmin Usuario: root Senha: É a senha root do acesso ao DB