How to install and upgrade phpMyAdmin latest version on Linux

4) Find phpMyAdmin Installation Directory

Use the below command to search the phpMyAdmin Installation Directory on your system

# find / -name "phpmyadmin"
/var/lib/mysql/phpmyadmin
/var/lib/phpmyadmin
/etc/phpmyadmin
/usr/share/lintian/overrides/phpmyadmin
/usr/share/doc/phpmyadmin
/usr/share/doc-base/phpmyadmin
/usr/share/dbconfig-common/data/phpmyadmin
/usr/share/phpMyAdmin

5) Remove/Delete phpMyAdmin content

/usr/share/phpmyadmin is correct phpMyAdmin installation directory, Just Delete/Remove everything from that directory

# cd /usr/share/phpMyAdmin/
# rm -Rf *

6) Move/Copy New phpMyAdmin content

Use the below command to copy all the new phpMyAdmin content to /usr/share/phpmyadmin.

# cd /opt/phpMyAdmin-4.5.5-all-languages
# mv * /usr/share/phpMyAdmin/

Restart Apache, MySQL or MariaDB service.

# Start/Restart the service in SysVinit Systeme #
# service restart httpd
# service restart mysql

# Start/Restart the service in Systemd Systeme #
# systemctl restart httpd.service
# systemctl restart mariadb.service

7) Check New version of phpMyAdmin

Navigate your browser to http://localhost/phpmyadmin, Now you are using latest version 4.2.9 of phpMyAdmin.
install-phpmyadmin-4-5-4
We are preparing all articles in-depth to understand by all level/stage Linux administrators. If the article is useful for you, then please spend less than a minute to share your valuable comments in our commenting section.

Please stay tune with us…Good Luck.

About Magesh Maruthamuthu

Love to play with all Linux distribution

View all posts by Magesh Maruthamuthu

6 Comments on “How to install and upgrade phpMyAdmin latest version on Linux”

  1. First of all thank you so much for you for this document, its works for me I have updated phpMyAdmin Version information: 4.4.15.1 to Version information: 4.6.3 .

    But I got 2 error
    1. mysqli_real_connect(): Headers and client library minor version mismatch. Headers:50547 Library:50632
    2. The configuration file now needs a secret passphrase (blowfish_secret).

    Any Suggestion ?

  2. I was looking to change session logout time of my phpmyadmin and found urs helpful for needed solution and to upgrade my phpmyadmin. Thanks a lot.

Leave a Reply

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