Hossam Elshahawi

Hossam Elshahawi

Software Engineer ❤️ Web

Manually upgrading phpMyAdmin in Sentora

I’m going to upgrade phpMyAdmin to latest version ( 4.8.5 ) in a CentOs 7 server running a Sentora control panel as I upgraded its php version to 7.2 ,therefore some issues appeared in phpMyAdmin like you can’t make a database export to file and it throws a 500 internal server error , simply in the following steps we are going to make a safe upgrade.

Step 1 : Sentora app directory

We have to go to the app directory where we can find the phpMyAdmin

cd /etc/sentora/panel/etc/apps

Step 2 : Download latest phpMyAdmin version

wget https://files.phpmyadmin.net/phpMyAdmin/4.8.5/phpMyAdmin-4.8.5-all-languages.zip

also you can check the latest version there : https://www.phpmyadmin.net/downloads/

Step 3 : Unzip the file

unzip -q phpMyAdmin-4.8.5-all-languages.zip

Step 4 : Take the configuration to safe place

we can copy config.inc.php file which holds the all configuration to safe place like /home

cp /etc/sentora/panel/etc/apps/phpmyadmin/config.inc.php /home/

Step 4 : Rename Old phpMyadmin folder and the newest one

mv phpmyadmin phpmyadmin_old

mv phpMyAdmin-4.8.5-all-languages phpmyadmin

Step 5 : Set the configuration

cp /home/config.inc.php /etc/sentora/panel/etc/apps/phpmyadmin/

Step 6 : Delete old version

cd /etc/sentora/panel/etc/apps/

rm -rf phpmyadmin_old

All done. In conclusion, You have the latest phpMyAdmin running on your server 🙂

DROP A COMMENT

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