Wednesday, February 16, 2022

How To Deploy PhpMyAdmin on Rocky Linux 8.5

in This Tutorial you will Learn " How To install phpMyAdmin on Rocky Linux 8.5"
phpMyAdmin is a free and open source administration tool for MySQL and MariaDB.
_________________________________________________________________________________________
Server - Os:  Rocky Linux 8.5  64Bit      | IP -192.168.1.60        |Hostname - server.yourdomain.com
_________________________________________________________________________________________
cat /etc/system-release ; hostname ; hostname -I ; dnf groupinstall "Development Tools" -y
dnf install httpd httpd-tools mariadb-server mariadb php php-opcache php-gd php-curl php-mysqlnd php-curl php-gd php-bcmath php-mbstring php-xml php-zip php-json -y

systemctl enable httpd mariadb php-fpm ; systemctl start httpd mariadb php-fpm
mysql_secure_installation
wget https://files.phpmyadmin.net/phpMyAdmin/5.0.1/phpMyAdmin-5.0.1-all-languages.zip
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

nano /etc/httpd/conf.d/phpmyadmin.conf
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>

firewall-cmd --permanent --zone=public --add-service=http ; firewall-cmd --permanent --zone=public --add-service=https
firewall-cmd --reload
systemctl restart httpd ; systemctl status httpd
http://127.0.0.1/phpmyadmin/
_________________________________________________________________________________________




No comments:

Post a Comment