How to update phpMyAdmin to the latest version in cyberpanel
In this tutorial, you’ll learn how to update your PhpMyAdmin in CyberPanel to the latest version.
NOTICE: Current version compatible with PHP 7.1 and newer and MySQL/MariaDB 5.5 and newer.
-
log in to your server as the root user
ssh root@YOUR_IP_ADDRESS. -
Go to
cd /usr/local/CyberCP/public/
-
Back up your phpmyadmin folder.
cp -r /usr/local/CyberCP/public/phpmyadmin /usr/local/CyberCP/public/phpmyadmin.old
-
Remove current phpmyadmin folder
rm -rf phpmyadmin
-
Install wget
sudo yum install wget
-
Download the new version from the PHPMyAdmin website, and 5.2.0 is the latest at this moment, so use wget command.
Go to this website in order to find the link to the latest download later on.
phpMyAdmin - Downloads
wget https://files.phpmyadmin.net/phpMyAdmin/5.2.0/phpMyAdmin-5.2.0-all-languages.zip
-
Unzip it
unzip phpMyAdmin-5.2.0-all-languages.zip
-
Rename the folder so cyberpanel can recognize it
mv phpMyAdmin-5.2.0-all-languages phpmyadmin
-
Copy config files from phpmyadmin.old into the new folder. (Config and Auto Login using CyberPanel)
cp -r /usr/local/CyberCP/public/phpmyadmin.old/config.inc.php /usr/local/CyberCP/public/phpmyadmin
cp -r /usr/local/CyberCP/public/phpmyadmin.old/phpmyadminsignin.php /usr/local/CyberCP/public/phpmyadmin
cp -r /usr/local/CyberCP/public/phpmyadmin.old/tmp /usr/local/CyberCP/public/phpmyadmin
- Remove temp files in the twig folder.
cd /usr/local/CyberCP/public/phpmyadmin/tmp/twig
rm -rf *
(If your PHPMyAdmin says it cannot be accessed, you may give the folder 777 permission)
chmod -R 777 /usr/local/CyberCP/public/phpmyadmin/tmp/twig
cd /usr/local/CyberCP/public/phpmyadmin/tmp/twig
Delete the old phpmyadmin folder:
rm -rf /usr/local/CyberCP/public/phpmyadmin.old
- Now access your PHPMyAdmin to check out the link below change your port if you use another one.
https://:8090/dataBases/phpmyadmin