How to Manually Upgrade phpMyAdmin on Linux

Minimal illustration with a stylized sailboat (phpMyAdmin logo) on a soft yellow background and the text ‘Manually Upgrade phpMyAdmin.

We may earn a referral fee at no additional cost to you when you shop through the links on this page.

Your distro’s package manager often runs one or two phpMyAdmin versions behind upstream. This DevAnswers guide replaces your installed phpMyAdmin with the current 5.2.3 release on Linux servers. It covers checksum and signature verification and the two warnings phpMyAdmin shows on first login after the upgrade.

When You Don’t Need to Manually Upgrade 

Before pulling source tarballs, check whether your environment can upgrade phpMyAdmin in a simpler way:

  • Package manager (apt, dnf, yum): If you originally installed phpMyAdmin from your distro repo, run sudo apt update && sudo apt install --only-upgrade phpmyadmin on Debian/Ubuntu, or sudo dnf upgrade phpMyAdmin on Fedora/RHEL. Distro packages can lag upstream by 6 to 18 months.
  • Hosting control panels (cPanel, Plesk): phpMyAdmin is updated by the panel itself. A manual replacement can break the panel’s integration, so use the panel’s update mechanism.
  • Docker: pull the official image and recreate the container instead of editing files inside it. docker pull phpmyadmin followed by docker compose up -d (or docker run) applies the new version cleanly.

If none of those apply, or your repo version is too far behind upstream to ship a needed feature or security fix, follow the steps below.

One forward-looking note: the phpMyAdmin team is working towards phpMyAdmin 6, which is expected to require PHP 8.2.0 or newer, and new releases and support for the 5.x line are expected to end in the near future. Manually upgrading to 5.2.3 today keeps you patched, but plan a PHP 8.2+ upgrade path for when 6 lands.

Back Up Your Current Install 

If you ran this guide before, remove the old backup directory first so the next step doesn’t refuse to overwrite it. rm -rf is destructive, verify the path is correct with ls /usr/share/phpmyadmin.bak before running this:

Terminal
sudo rm -rf /usr/share/phpmyadmin.bak

Rename your current phpMyAdmin directory in place. Renaming is faster than copying and gives you a one-step rollback if the upgrade fails:

Terminal
sudo mv /usr/share/phpmyadmin /usr/share/phpmyadmin.bak
If your install lives at /var/www/html/phpmyadmin or another path (Apache vhost, nginx alias, custom directory), substitute that path in every command in this guide. Run find / -name 'config.inc.php' 2>/dev/null to confirm where your existing install is.

The backup directory holds the files you’ll need to carry forward to the new install: config.inc.php (your custom settings, including the blowfish secret and any extra Servers entries) and the optional config.header.inc.php and config.footer.inc.php if you’ve added custom HTML around the phpMyAdmin UI.

Download phpMyAdmin 

phpMyAdmin maintains two release lines. Pick the one that matches your PHP version. Run php -v to confirm; on multi-PHP or PHP-FPM setups the CLI can differ from the PHP your web server actually runs, so if in doubt trust the version a phpinfo() page reports.

Release lineLatest versionPHP requirementStatus
5.2.x (current)5.2.3 (released Oct 8, 2025)PHP 7.2.5 or newerActive development
4.9.x (legacy)4.9.11 (released Feb 8, 2023)PHP 5.5 to 7.4Security fixes only

If you’re on PHP 5.5 through 7.2.4 and can’t upgrade PHP yet, use the legacy 4.9.11 archive (see the callout below). If you can upgrade PHP, our guide to upgrading PHP on Ubuntu and Debian covers the modern Sury repository setup.

On the legacy 4.9.x line? The rest of this guide uses 5.2.3 throughout. If you’re installing 4.9.11 instead, substitute 4.9.11 for 5.2.3 in every wget, sha256sum, gpg, tar, mv, and rm command below. The extracted directory will be phpMyAdmin-4.9.11-all-languages. The substituted URLs resolve under files.phpmyadmin.net/phpMyAdmin/4.9.11/.
Three security advisories landed against the 5.x line in 2025, all affecting versions prior to 5.2.2: PMASA-2025-1 (CVE-2025-24530) patched an XSS in the Check tables feature triggered by a crafted table or database name, PMASA-2025-2 (CVE-2025-24529) patched an XSS on the Insert page, and PMASA-2025-3 addressed CVE-2024-2961, a buffer overflow in glibc’s iconv(). That third one does not affect a default configuration (it requires the iconv recoding engine and a deliberate export converting to the ISO-2022-CN-EXT character set), but the two XSS fixes alone mean an upgrade from anything older than 5.2.2 isn’t optional. No newer advisories have been published since.

Move into the parent directory and download the archive plus its checksum and signature files. The .sha256 and .asc files are tiny and let you verify the download in the next section:

Terminal
cd /usr/share
sudo wget https://files.phpmyadmin.net/phpMyAdmin/5.2.3/phpMyAdmin-5.2.3-all-languages.tar.gz
sudo wget https://files.phpmyadmin.net/phpMyAdmin/5.2.3/phpMyAdmin-5.2.3-all-languages.tar.gz.sha256
sudo wget https://files.phpmyadmin.net/phpMyAdmin/5.2.3/phpMyAdmin-5.2.3-all-languages.tar.gz.asc

On a minimal install without wget, substitute sudo curl -O for sudo wget in each command above, or install it first with sudo apt install wget (Debian/Ubuntu) or sudo dnf install wget (RHEL-family).

Verify the Download (Checksum and GPG) 

Verifying the download takes a few seconds and confirms that what you just pulled is byte-identical to what the phpMyAdmin team released. Skip this and you’re trusting whatever your network path served you.

SHA256 checksum (always do this) 

The .sha256 file contains a single line: the expected hash and the filename. Run sha256sum -c in the directory where both files live:

Terminal
sha256sum -c phpMyAdmin-5.2.3-all-languages.tar.gz.sha256

Expected output:

Output
phpMyAdmin-5.2.3-all-languages.tar.gz: OK

If you see FAILED, do not proceed. Delete both files and re-download.

The SHA256 file confirms the archive is intact. The GPG signature confirms who published it: phpMyAdmin has cryptographically signed every release since July 2015, each archive ships with a matching .asc signature file, and the release manager since January 2016 is Isaac Bennetch. Import his public key from a keyserver, then verify the .asc signature against the archive:

Terminal
gpg --keyserver keyserver.ubuntu.com --recv-keys 0xCE752F178259BD92
gpg --verify phpMyAdmin-5.2.3-all-languages.tar.gz.asc phpMyAdmin-5.2.3-all-languages.tar.gz

Look for the Good signature from "Isaac Bennetch" line. The full key fingerprint should read 3D06 A59E CE73 0EB7 1B51 1C17 CE75 2F17 8259 BD92. GPG will warn that the key is not certified by a trusted signature; that’s expected the first time you import any third-party key, and the fingerprint match is what matters.

If gpg isn’t installed, add it with sudo apt install gnupg on Debian/Ubuntu or sudo dnf install gnupg2 on Fedora/RHEL. Most server distros include it by default.

Replace the Installation 

Extract the archive next to your old install:

Terminal
sudo tar xzf phpMyAdmin-5.2.3-all-languages.tar.gz

The extraction creates a directory called phpMyAdmin-5.2.3-all-languages. Rename it to the install path you backed up earlier:

Terminal
sudo mv phpMyAdmin-5.2.3-all-languages /usr/share/phpmyadmin

Copy your custom configuration back from the backup so you don’t lose your blowfish secret or extra server definitions. The first command always runs; the loop after it conditionally copies the optional config.header.inc.php and config.footer.inc.php files only if you had created them previously:

Terminal
sudo cp /usr/share/phpmyadmin.bak/config.inc.php /usr/share/phpmyadmin/
for f in config.header.inc.php config.footer.inc.php; do
  [ -f /usr/share/phpmyadmin.bak/$f ] && sudo cp /usr/share/phpmyadmin.bak/$f /usr/share/phpmyadmin/
done
Don’t chown -R the install path to your web-server user. The phpMyAdmin code should stay owned by root with world-readable permissions (the apt package layout). Giving the web process write access to its own code expands the blast radius if PHP is ever compromised. Only the runtime-writable tmp/ directory needs web-server ownership, and that’s covered in the next section.

Open phpMyAdmin in your browser and log in to confirm the upgrade landed. If login fails outright with an “access denied” message, see our phpMyAdmin access denied for user root@localhost fix. If login succeeds but you see one or two warning banners at the bottom of the page, the next section clears them.

Fix Common Post-Upgrade Errors 

phpMyAdmin runs configuration sanity checks at the bottom of the login screen and the home page. After a fresh upgrade you may see two warnings, both safe to fix:

The error reads: The configuration file needs a valid key for cookie encryption. A temporary key was automatically generated for you. Please refer to the documentation.

This means config.inc.php doesn’t have a blowfish_secret set, or the value is shorter than 32 bytes. phpMyAdmin uses this string to encrypt session cookies under the cookie auth mode (the default). It loads libraries/config.default.php first and then overrides it with anything in your config.inc.php, so put custom settings in config.inc.php rather than editing the defaults file.

Generate a 32-character string. Use a strong, randomly generated password, or generate one locally with openssl rand -base64 24 (24 random bytes encode to exactly 32 characters). phpMyAdmin truncates anything longer than 32 bytes and silently generates a temporary key for anything shorter.

Edit config.inc.php (adjust the path if your install lives elsewhere):

Terminal
sudo nano /usr/share/phpmyadmin/config.inc.php

Add or update the blowfish_secret directive inside the file’s existing <?php block (your config.inc.php already opens with <?php from the backup copy, so do not add another). Place it just below the opening tag:

/usr/share/phpmyadmin/config.inc.php
// Source: https://devanswers.net/manually-upgrade-phpmyadmin/
// Use a 32-character random string. Anything longer is truncated; anything shorter is replaced with a temporary key.
$cfg['blowfish_secret'] = 'PASTE_YOUR_32_CHAR_BLOWFISH_SECRET';

Save and exit (press CTRL + X, press Y, then press ENTER)

Reload the phpMyAdmin login page. The cookie warning should be gone. If it’s still there with the same banner, you saved a string shorter than 32 bytes; recheck the length with wc -c on the secret. If you instead encounter a persistent error about being unable to set a session cookie, fix phpMyAdmin session cookie issues by checking directory permissions.

TempDir not accessible warning 

The error reads: The $cfg[‘TempDir’] (/usr/share/phpmyadmin/tmp/) is not accessible. phpMyAdmin is not able to cache templates and will be slow because of this.

The default TempDir is ./tmp/ relative to the install root. The fresh tarball doesn’t include this directory because it’s runtime-only. Create it and hand ownership to the web server user:

Terminal
sudo mkdir /usr/share/phpmyadmin/tmp
sudo chown -R www-data:www-data /usr/share/phpmyadmin/tmp
sudo chmod 750 /usr/share/phpmyadmin/tmp
Different distro / different web server? Replace www-data:www-data with the user your web server actually runs as: apache for Apache (httpd) on CentOS/RHEL/Fedora, nginx for nginx on the same distros, http on Arch. When PHP runs through PHP-FPM, the writer of tmp/ is the FPM pool user rather than the web server’s: check ps aux | grep php-fpm (on RHEL-family the default pool user is apache even behind nginx). For mod_php, confirm the web-server user with ps aux | grep -E '[a]pache|[h]ttpd|[n]ginx' | grep -v root | head -1 (the bracket trick stops grep matching its own command line; grep -v root filters the master process so you see a worker, which is the user you want). The chmod 750 gives the owner read/write/execute and the group read/execute, which is enough for phpMyAdmin’s template cache without making the directory world-readable.

Reload phpMyAdmin. Both warnings should be cleared.

403 or blank page on RHEL-family distros (SELinux) 

On Rocky Linux, AlmaLinux, RHEL, or Fedora with SELinux enforcing, the new install can return 403 Forbidden for every page even though ownership and permissions look right. The cause is the swap itself: files moved with mv retain their original SELinux security context rather than inheriting the context of the destination directory, so a tree extracted elsewhere and moved into place keeps a context the web server isn’t allowed to read. Relabel the directory to its correct context:

Terminal
sudo restorecon -Rv /usr/share/phpmyadmin

The command prints each relabelled path and restores read access for the application tree. The tmp/ directory you created above needs one more step: the default policy maps everything under /usr/share to a read-only web context, so phpMyAdmin still can’t write its template cache there. Tell SELinux that path is writable web content, then relabel it:

Terminal
sudo semanage fcontext -a -t httpd_sys_rw_content_t '/usr/share/phpmyadmin/tmp(/.*)?'
sudo restorecon -Rv /usr/share/phpmyadmin/tmp

If semanage isn’t installed, it ships in policycoreutils-python-utils (sudo dnf install policycoreutils-python-utils). Ubuntu and Debian don’t ship SELinux enforcing, so this section doesn’t apply there.

Clean Up 

Delete the downloaded archive and verification files so installer artifacts don’t accumulate next to a web-served tree:

Terminal
sudo rm /usr/share/phpMyAdmin-5.2.3-all-languages.tar.gz
sudo rm /usr/share/phpMyAdmin-5.2.3-all-languages.tar.gz.sha256
sudo rm /usr/share/phpMyAdmin-5.2.3-all-languages.tar.gz.asc

Two leftovers deserve a quick check while you’re here: make sure your restored config.inc.php is not world-writable, and if you’ve ever used phpMyAdmin’s browser-based setup feature, remove its config directory from the install path now that configuration is done.

Once you’ve confirmed the new install works (login, run a query, browse a few tables), you can remove the backup directory. This step is optional: if you’d rather keep a rollback path in case a problem surfaces later, leave /usr/share/phpmyadmin.bak in place and delete it once you’re confident:

Terminal
sudo rm -rf /usr/share/phpmyadmin.bak

Next steps 

Your phpMyAdmin install is on 5.2.3 (or 4.9.11 if you followed the legacy PHP path) with verified integrity and the two first-login warnings cleared. From here:

Found a step that needs adjusting on your distro? Let me know in the comments so the next reader benefits.

Support DevAnswers
Written, tested and maintained by one developer. Your support keeps these guides accurate and ad-light.
Buy me a coffee

568 replies

Leave a reply

  1. Oliver

    Thank you!
    I haven’t removed this

    Once you’ve confirmed the new install works (login, run a query, browse a few tables), remove the backup directory too:

    sudo rm -rf /usr/share/phpmyadmin.bak

    because next time I’ll can’t do this:

    Copy your custom configuration back from the backup so you don’t lose your blowfish secret or extra server definitions. The first command always runs; the loop after it conditionally copies the optional config.header.inc.php and config.footer.inc.php files only if you had created them previously:

    sudo cp /usr/share/phpmyadmin.bak/config.inc.php /usr/share/phpmyadmin/
    for f in config.header.inc.php config.footer.inc.php; do
      [ -f /usr/share/phpmyadmin.bak/$f ] && sudo cp /usr/share/phpmyadmin.bak/$f /usr/share/phpmyadmin/
    done
    1. DevAnswers

      Thanks Oliver, good call. You’re right to hold on to the backup. The guide does copy your config back out of phpmyadmin.bak before the cleanup step, so you won’t actually lose your settings either way, but keeping the backup around is still smart: it’s a clean rollback if the new version acts up later, and it preserves anything else you’d customized in the old directory. I’ve updated the article to make removing the backup optional, with a note about that rollback benefit. Thanks for flagging it.

  2. Marcel Beringer

    I figured it out, your example of /usr/share/phpmyadmin/config.inc.php is missing the <?php tag

    Silly me for not seeing that directly 🙂

    Have a nice day.

    1. DevAnswers

      Sorry about that. Fixed!

  3. Marcel Beringer

    Apache/2.4.58 (Ubuntu)
    Database client version: libmysql – mysqlnd 8.3.6
    PHP extension: mysqli Documentation curl Documentation mbstring Documentation sodium Documentation
    PHP version: 8.3.6
    Description: Ubuntu 24.04.2 LTS

    The installation works, I have done this procedure many times with the help of this website. But for some reason the cookie encryption is not going as it should be. I have created the config.inc.php in /usr/share/phpmyadmin/ and added the 32 character key, but the phpMyAdmin gui still has the notice below in screen “The configuration file needs a valid key for cookie encryption. A temporary key was automatically generated for you. Please refer to the documentation.”

    Any ideas?

  4. DevAnswers

    Update 2025: After 2 years of no updates from phpMyAdmin, we finally have a new version! The current stable release of phpMyAdmin is 5.2.2 (as of Jan 8, 2025).

  5. Salami

    The tutorial works like charm thanks

  6. Taufik Maulana

    thank u bro its working

  7. Javier Alfonso

    Hi, I think than better than giving 777 to the tmp folder, you could change the owner to the apache user (usually www-data) with something like:

    sudo chown www-data /usr/share/phpmyadmin/tmp/

    1. EvertX

      I had followed this guide and read your comment afterwards. I agree with you so now I want to change the permissions back to their original/default but do not know what those are? Could you tell me/do you know?

      1. DevAnswers

        Guide updated.

  8. Shafeeq

    Man, such a beautiful tutorial

  9. Uzi

    Here’s a PHP script to facilitate the above steps.

    Please read through it and never run scripts blindly without understanding what they do.

  10. Naresh

    Tutorial worked great, thank you very much !!

  11. Roy

    Followed your beautifully clear instructions, /usr/share/phpmyadmin directory contains 5.2.1, bak contains the old one.
    After reboot, to restart anything necessary, and refreshing the phpMyAdmin web page I still see the old version:
    “A newer version of phpMyAdmin is available and you should consider upgrading. The newest version is 5.2.1, released on 2023-02-08.”
    Is there another location where the old version might be running from?

    Raspberry Pi OS (updated) (Debian-based, like Ubuntu), PHP 7.3, Apache/2.4.54 (Raspbian)

  12. Martin

    Thanks for this excellent tutorial!!! Worked perfekt!! I wish, all tutorials would be as great as yours!

  13. Roy

    I followed all the instructions which are beautifully clear, and it all appeared to work – when I look in /usr/share/phpmyadmin I see 5.2.1, and all directories are dated 8/2/2023.
    But when I opened phpMyAdmin, I still see “A newer version of phpMyAdmin is available and you should consider upgrading. The newest version is 5.2.1, released on 2023-02-08.”
    I restarted apache2 and mysql but that made no difference, so rebooted the server. Reopened the phpMyAdmin webpage but still it shows 5.1.0

    I ran a find on phpmyadmin
    sudo find / -name phpmyadmin
    find: ‘/run/user/1000/gvfs’: Permission denied
    /etc/phpmyadmin
    /usr/share/phpmyadmin
    /usr/share/phpmyadmin/vendor/phpmyadmin
    /usr/share/dbconfig-common/scripts/phpmyadmin
    /usr/share/dbconfig-common/data/phpmyadmin
    /usr/share/doc-base/phpmyadmin
    /usr/share/doc/phpmyadmin
    /usr/share/lintian/overrides/phpmyadmin
    /var/www/html/phpMyAdmin/vendor/phpmyadmin
    /var/lib/phpmyadmin
    /var/lib/mysql/phpmyadmin

    I see there’s a file themes.php in phpmyadmin.bak so I did a find on that to see if there’s another copy of the old version elsewhere where it’s being run from, but there’s only that one copy.

    It seems to be loading from phpmyadmin.bak, not phpmyadmin

    Any suggestions, please?
    Thanks

    Raspberry Pi running Pi OS, which is, like Ubuntu, a version of Debian, php 7.3.33, Apache/2.4.54 (Raspbian)

  14. John

    Great guide, thanks! 5.2.1 is out, so people can update the commands if needed.

    1. DevAnswers

      Thanks. Guide updated 😁

  15. Sunil Vishwakarma

    Thanks! It’s working for me.

  16. Jim

    Tutorial worked great, thank you very much !

  17. ramothe

    thanks a lot for this tutorial. It worked at perfection !

  18. Kris

    Perfect, thank you! 🙂

  19. Oscar

    Perfect!! F$#*&$ Awesome guide, Thank you!!

  20. Takis Pournaras

    Well written and flawless. Thanks

  21. Peter L

    thanks. This worked like a charm.

  22. programador

    obrigado… ajudou muito php 8.2

  23. rafi

    thanks bro very helpful the docs is very helpful keep it up

  24. Francois

    You are the best!!!!!
    merci beaucoup pour ce tutoriel
    Thanks

  25. Abdul Raheem

    Thanks Bro!
    I can’t tell you how long I was searching for this detailed tutorial!!!
    Keep it up bro!!!

  26. Jan van der Horst

    Thank you, very helpfull and excellent explanations.

  27. Joaquín

    Thanks a lot, very easy to follow and excellent explanations!

  28. Bibarys Utepov

    Thank you for the guide! That was helpful and I think it will help to a lot of newbies like me

  29. Gaetan DOGER DE SPEVILLE

    Worked 100% with no fuss and no re-trying. Thank you a million times for this clear and concise contribution.

  30. Haris

    Very clear tutorial!

    Thank you for sharing

  31. aleX

    the only tutorial that actually works! thank yoU!

  32. atik

    Thanks a ton

  33. Jeff

    Awesome guide! Thank you

  34. crystygye

    FOR THEOSE WHO has the error “The phpMyAdmin configuration storage is not completely configured” and NOBODY here helped:

    ubuntu – log in console server root
    and type these comands one by one:

    mysql
    GRANT ALL PRIVILEGES ON *.* TO ‘you.user.witch.you.use.in.phpmyadmin.log.in.page’@’localhost’ WITH GRANT OPTION;
    FLUSH PRIVILEGES;

    DONE – it will give permission to user to create the missing tables for the user in cause!

  35. Mattia

    Works like a charm!
    Thank you very much.

  36. Bob

    Outstanding, perfect, thank you.

  37. Sangamesh

    Great, my latest phpmyadmin working!!!!!!!!11

  38. Mark

    You’re my hero, thank you! Ubuntu 20.04 and PHP 7.3 (still =P)

  39. Asim

    Thanx bro, it’s work with me on ubuntu 20.04 php8.0 and php8.1

  40. Martin

    wonderfull! thanks for your documentation

  41. Jeremy

    Thank you for the guidance! It is helpful!

  42. Ajay A

    Great, it’s work for me. ubuntu 22.04

  43. Nick Belyavski

    Good stuff!
    Instead of 777 for the tmp directory, I’d suggest:
    sudo chown root:www-data /usr/share/phpmyadmin/tmp
    sudo chmod g+rwxs /usr/share/phpmyadmin/tmp

    Assuming www-data is the apache system user, and root is the current owner, this adds apache as a the group and gives it permission to create and manage its own files there without giving access to everyone on the system.

    1. Kris

      Perfect, thank you! 🙂

  44. Dan Cacovean

    Great and complete tutorial!!! Congrats!

  45. A.Oo

    You’ve saved my life, thanks heaps!

  46. Toma

    Simply saying thank you, sir!

  47. Marcel Beringer

    Hi,

    Upgrading worked, thanks for the nice how-to.

    Perhaps any idea how I can change my Server charset from cp1252 West European (latin1) to UTF-8 Unicode (utf8mb4)?

    Cheers!

    1. DevAnswers

      Try:

      sudo nano /etc/mysql/my.cnf

      Paste in

      [client]
      default-character-set=utf8mb4
      
      [mysql]
      default-character-set=utf8mb4
      
      [mysqld]
      collation-server = utf8mb4_unicode_520_ci

      Save and exit (press CTRL + X, press Y and then press ENTER)

      Restart MySQL

      sudo service mysql restart
  48. Kamal

    Great. helped

  49. Steve A

    I’ve upgraded and within phpmyadmin it’s showing as 5.2 however when running dpkg -l phpmyadmin is says:

    ii phpmyadmin 4:4.6.6-5ubuntu0.5 all MySQL web administration tool

    any ideas?

    1. DevAnswers

      Well, this is why this article exists. The repositories often do not have the latest versions of packages such as phpMyAdmin, so instead we install it manually. In doing this, we bypass apt and dpkg is “dumb” to any version changes. Hope that makes sense?

  50. João

    Just came here to say thank you 🙂

  51. Bis

    Great job!

  52. kim

    Hi, Bro

    Thanks for your great post! You are the tech God. 😀

    And hope you can keep going for sharing more great posts in future.

    I am your Fans.

    Best

  53. Dietmar Ley

    Hi,

    I am very grateful for this description. Everything works fine.
    Probably, I cannot count up to 32, because I always got the message ” The secret passphrase in configuration (blowfish_secret) is not the correct length. It should be 32 bytes long.”

    Found this entry after I had to realize that php 8.1.7 requires phpmyadmin version 5.2 and higher.

    Regards,
    Dietmar

  54. Marcos

    Thank you, I was in php8 and phpmyadmin 4.9 with errors, this helped.

  55. Tikyd

    wow, Thanks so much. That tutorial not only walked me through the process of installing phpmyadmin but also anticipated error. Thanks so much.

  56. Seohoo

    Working perfectly! Thank you very much!

  57. Ben

    Thank you for dong this HowTo Saves me a lot of Research today 🙂 <3

    1. DevAnswers

      👍

  58. Marty

    This webpage for upgrading phpmyadmin is great!! Thank you.
    I also encountered the same issue when installing v.5.2.0.
    “The configuration file now needs a secret Passphrase (blowfish_secret).
    CONFIG_DIR no longer exists in the vendor_config.php file.

    I have not tried what was documented here as mention below by Chris.
    https://docs.phpmyadmin.net/en/latest/setup.html#quick-install-1

    Also have this new warning: The phpMyAdmin configuration storage is not completely configured, some extended features have been deactivated. Find out why.
    Or alternately go to ‘Operations’ tab of any database to set it up there.

    Otherwise, it seems to be working fine.
    Any updated suggestions would be great….and thanks again.

    1. DevAnswers

      Thanks for the link, Marty. I have updated the guide on the recommendations from phpMyAdmin.

      As for your storage error, I have never seen that before and cannot test for it. There’s plenty of comments about it over on Stackoverflow if your search. Good luck.

      1. Marty

        Thanks for the quick response on this issue. Worked great.
        I’ll check into the other issue on Stackoverflow. Best regards.

  59. JailSeed

    Hello! Just tried to install phpMyAdmin 5.2.0 and I have ‘The configuration file now needs a secret passphrase (blowfish_secret)’ error. There is no ‘CONFIG_DIR’ variable in vendor_config.php. What should I do?

    1. DevAnswers

      Guide has been updated!

  60. Martin

    I don’t have any mention of CONFIG_DIR in the vendor_config.php file

    I’m using php 8.1.5 and phpMyAdmin 5.2.0

    Can someone tell me what the new procedure is?

    1. DevAnswers

      Guide has been updated!

  61. Chris

    For 5.2.0 CONFIG_DIR is not used so amend the configFile line instead, eg:

    ‘configFile’ => ‘/etc/phpmyadmin/config.inc.php’,

  62. Graham

    Taken from phpmyadmin/doc/html/setup.html#quick-install
    You may like to add this to your documentation.
    Aparently you have to create config.inc.php in directory that contain index.php:-

    <?php
    // use here a value of your choice at least 32 chars long
    $cfg['blowfish_secret'] = '1{dd0`<Q),5XP_:R9UK%%8\"EEcyH#{o';

    $i=0;
    $i++;
    $cfg['Servers'][$i]['auth_type'] = 'cookie';
    // if you insist on "root" having no password:
    // $cfg['Servers'][$i]['AllowNoPassword'] = true;

  63. Graham

    Blowfish no longer works in 5.2.0
    Any ideas?

    1. DevAnswers

      Fixed now.

  64. Rinki

    Very usefull and working perfectly fine with all above steps.

  65. Jürgen

    Thank you! The best guide!
    Change to Raspberry Pi OS 64-Bit with:
    Apache2 –> PHP8.1 –> MariaDB –> phpMyAdmin5.1.3

  66. Electrick

    aca te dejo mis dieses

  67. Peter

    Thank you, you saved my bacon

  68. Peter

    Thank you! This is the best guide ever.

  69. Bob

    Thanks it’s all good now ! Good Job

  70. Belal

    Working very well. Thank you so much.

  71. Fabiano alves de sousa

    Thanks!! Very good!

  72. Andreas Deininger

    Best guide out there, painless upgrade when following your description!
    As requested, I let you know that phpmyadmin is at version 5.1.3 now. Thanks for updating your guide!
    And thanks for providing these instructions, much appreciated!

    1. DevAnswers

      Thanks 🙂

  73. Spurgeon

    Thank you! God bless you!

  74. daddiofaddio

    This post has always worked flawlessly for me when upgrading. However, I just downloaded 5.2.0-rc1 and it appears that the contents of vendor_config.php have changed. For instance the lines containing ‘TEMP_DIR’ and ‘CONFIG_DIR’ are different and the instructions no longer work. You may want to update the post to include new instructions since the changes will likely be applicable to future official releases.

    1. DevAnswers

      Correct! There have been some fundamental changes in this new release. I have updated the guide. Let me know if it works ok.

  75. Thomas P.

    This tutorial worked perfectly for me! Thank you so much.
    Leaving a comment, hopefully it’ll help the recommendation of this post throughout the Internet 😀

    Have a nice one.

    1. DevAnswers

      😊

  76. Houssam Al Halabi

    Thank you! Finally working

  77. Jamey Squires

    Great tutorial.. !!

    Thank you very much.

  78. Roger

    Thanks – saved me a ton of research.

  79. Shubham Kukreti

    thank you so much!

  80. Niels De Meyer

    This is a really good tutorial. Thanks a lot

  81. Ali

    Many thanks! Updated and works and I’m veryyy happy.

  82. Rob Phillips-Legge

    What I get is a 404 error. I can see all the files are there so it looks like a permissions issue, had to run CHMOD, CHOWN and create a tmp folder. Works now.

  83. Rob Phillips-Legge

    What I get is a 404 error. I can see all the files are there so it looks like a permissions issue

  84. hux4l

    Saved my life, thank you!

  85. Vincent Polisi

    Excellent tutorial! Worked perfectly! Thank you!

  86. Joao Carlos Teixeira de Melo Filho

    Thanks!

  87. Alex

    Great guide! Thanks so much!

  88. Ollie

    Thank you very much! Excellent tutorial!

  89. Robert

    5.1.1 is now available
    and thank you!

    1. DevAnswers

      😎

  90. Mar

    Thank you very much for your tutorial that helped me a lot. Upgrade from Ubuntu 18 to 20 make a mess, but is sorted

  91. Chris Arnold

    Thank you:
    I’ve just followed the instructions and used the latest version 5.1.1 and all is now fixed
    I did have to make the changes in the vendor_config.php to remove the warnings.
    PRETTY_NAME=”Raspbian GNU/Linux 10 (buster)”
    NAME=”Raspbian GNU/Linux”
    VERSION_ID=”10″
    VERSION=”10 (buster)”
    VERSION_CODENAME=buster

  92. Renato

    Work ! thank you

    ———————————————————————-
    2021 — CentOS 7 and Php 7.4 Phpmyadmin 5.1.1
    ———————————————————————–

    sudo mv /usr/share/phpMyAdmin/ /usr/share/phpMyAdmin.bak

    sudo mkdir /usr/share/phpMyAdmin/

    cd /usr/share/phpMyAdmin/

    sudo tar xzf phpMyAdmin-5.1.1-all-languages.tar.gz

    sudo mv phpMyAdmin-5.1.1-all-languages/* /usr/share/phpMyAdmin

    sudo mkdir /var/lib/phpMyAdmin/tmp/
    sudo chown -R apache:apache /var/lib/phpMyAdmin/tmp
    sudo chmod -R 0755 /var/lib/phpMyAdmin/tmp/

    sudo nano /usr/share/phpMyAdmin/libraries/vendor_config.php

    define(‘TEMP_DIR’, ‘/var/lib/phpMyAdmin/tmp/’);

    define(‘CONFIG_DIR’, ‘/etc/phpMyAdmin/’);

    Save

  93. Darius

    Flawless! Thanks.

  94. JJ

    Awesome – Thank You
    It’s Still working on Ubuntu 16.04.7 LTS
    I installed phpMyAdmin 4.9.7

  95. Pipo

    Excellent article, Thank you.
    If anyone found some error after doing every step in this article, you may found a message like “The phpMyAdmin configuration storage is not completely configured, some extended features have been deactivated. Find out why. Or alternately go to ‘Operations’ tab of any database to set it up there.”
    Don’t panic, first, you should log in as root and scroll down to found the message that I mentioned and then click find out why and click create a database for configuration like something like that, and waiting for creating some table, it shows OK, finally, you can use phpMyAdmin normally. 🙂

  96. Serok

    Thanks. All worked.

  97. Babakt

    Awsome!

  98. Mutale

    This worked out like good for PHP 8.0.5 May – 2021
    Thanks.

  99. Jon

    Awesome, this worked for me. Thank you!

  100. william ache

    Excelent thanks!

  101. Arlindo Bento

    Excelent tutorial thanks!

  102. ipang dwi - firstplato

    bro, you are really save my time.. running flawlesly, thanks a lot.. I was implement it on my dev and production server..

  103. Joe

    Excellent instruction – works perfect on a Pi!

  104. Deano

    Awesome instructions, thanks.
    I particulary like the way you give us both the exact syntax and a clear explanation about what we’re doing.

  105. Daronna

    EXCELLENT, yes all in caps. It worked perfectly. Thank you so much

  106. Jeff Long

    Thanks so much! Worked flawlessly.

  107. Hachem

    Afte I make all the steps , I got connection refused to all my users

  108. boodjel

    LIFE SAVER !!!!

  109. Sherlock

    Thank you a lot :+1:

  110. Amine

    Thank you so so much, you are a life saver and I wish you all the best 🙂

  111. Pink

    I never comment on stuff I read, but damn! Thanks dude.

  112. neralex

    Thank you, works every time!

  113. ayied

    OMG! Thank you so much for this, i can finally use phpmyadmin!

  114. rika

    this works amazingly every time. thank you very much!

  115. Andy

    You should also consider to delete the default setup UI, it is a security risk.
    Just delete the directory: /usr/share/phpmyadmin/setup/

  116. Simon

    There is a new version of phpmyadmin (5.1.0) released on 2021-02-24 🙂

    1. DevAnswers

      Thankin you. 🙂

  117. Geraldine

    Thanks a lot, it worked perfectly for me!

  118. Anton

    Thank you very much for that tutorial!

  119. Jim

    This is the first How-To I have followed to the letter that worked the first time in a long time! Thank you for the effort.

  120. Tony

    Fantastic. Did the job perfectly.

  121. Darrik

    Fantastic instructions!

  122. Peter Francis

    Thanks very much – worked a treat on Raspberry Pi OS (Buster).

  123. Matt Wilson

    upgrade process worked great, been fighting this for a while, and you saved me! well done!

  124. Carlos Castro

    Muchas gracias por el turorial!!

  125. JHONATAN J J NUSS

    Funcionou perfeitamente

    1. Paulo

      aqui o phpmyadmin nem carrega mais

  126. sergio Saad

    just perfect
    And really well detailed! Great Job

  127. Mac Baret

    Awesome.

    Worked and works like a charm.

    Efficient tutorial.

    JUST AWESOME OMG THANKS. ahah, sorry.

  128. Raphael

    Thanks a lot!

  129. ahmed
    thank you so much
  130. vpougatchev

    That is a great tutorial. But in my case when trying to open phpMyAdmin, it gave me a Permission denier error. So I had to run chmod 777 /var/lib/php/session/ then it worked.

  131. Chris

    Very good. Thank you very much!

  132. me_th

    error
    The $cfg[‘TempDir’] (/usr/share/phpmyadmin/tmp/) is not accessible. phpMyAdmin is not able to cache templates and will be slow because of this.

  133. Lars

    Very nice guide! Thanks a lot!
    Kudos and greetings from Germany!

  134. Wong

    This is the best tutorial ever I’ve followed online.

  135. Erik

    Thanks for the clear explaination..

    Some Kudo’s for you!

  136. Nikhil Gyan

    Thanks a lot. This is great and life-saving for me.

  137. kajdzo

    Great walkthrough, thanks!

  138. Robert

    Thank you

  139. Alex

    This is just brilliant!
    Thank you soo much.

  140. Andrew

    Awesome! Case does matter though in centos it’s /usr/share/phpMyAdmin/

  141. Robert

    Worked all great! Thanks.

  142. Jim

    Thanks. Worked perfectly once I found MY typo!

  143. Jim

    Followed all steps and now phpmydamin just opens to a blank page. Rebooting made no difference.

    1. Jim

      Resolved – it was a typo

  144. D K

    Awesome tutorial!

  145. Mohammad

    Thank you so much!

  146. Dimitris
    thank you very much
  147. Mike Echo

    I had some trouble, but after copying the old “config.inc.php” over, everything runs perfect.

  148. Earl

    Great Tutorial ! I don’t know what exactly happened but after closely following the instructions to install phpmyadmin I get the infamous 4O4 ERROR – URL not found on this server. Every other thing worked as per the instructions.

  149. Asif Nadaf

    Thanks for the awesome tutorial

  150. Simon

    New Version of phpMyAdmin 🙂
    Thanks for this complete tutorial ^^

    1. DevAnswers

      Updated 🙂

      1. Simon

        There is again a new version (5.0.4) ^^

        1. DevAnswers

          Updated, thanks.

  151. Hamdi Bey

    Great article. Very professionnal. Thanks.

  152. RenzoTello

    Hello, I have a question, I really don’t know if you can help me, but if you do, I would appreciate it too much! The problem is the following: I have a VPS, in it I put the Phpmyadmin, mysql, etc …, I also installed the OGP (Open Game Panel), the fact is that when I create the database of one of my server games, everything is fine, it connects well and everything, but when I enter the game and try to register, it does not let me, I get that the account “supposedly already exists”, but in reality it does not exist, a table must be created in the table ” users ” with the user’s data, but it is not like that, I get that error, if you could help me I would appreciate it, I know it does not have much to do with what you published, but I am new to this and I do not know how to fix it .

    Postscript: It is not the game, since the game is called “SAMP” (San Andreas MultiPlayer) and actually in other VPS if it works well, but not in mine, then the problem must be with MySQL or PhpMyAdmin, but I really don’t know.

  153. edwar vilchez

    Thank you you saved my installation and my life.

  154. Roger

    Great tutorial – Thank you !

  155. Alidamir

    very good

  156. Ardiansah Ardiansah

    nice job bro

  157. MikeT

    One problem with 5.0.2 was I had no tmp directory under /var/lib/phpMyAdmin (it is phpMyAdmin not phpmyadmin). Created the tmp directory, changed ownership as apache:apache, made sure it had write permissions. Had to restart httpd for these config changes. Then errors went away.
    When I set tmp pointer, site stopped working (did not exist – I did not confirm first).
    Centos7
    5.5.65-MariaDB – MariaDB Serve
    Apache/2.4.6 (CentOS) PHP/7.3.22
    phpMyAdmin: 5.0.2

  158. Thomas

    Great. I hate it when they keep updating shit so fast, and compatibility errors start occurring, but I love it when guys like you give us an simple fix.

  159. Ingo

    Perfect Article! Thank you mate 🙂

  160. Guillermo Hurtado A

    Thank you! Perfecto!

  161. Lukasw

    Perfection, the smoothest process I have ever experienced. Well done on this tutorial.

  162. secondflowmedia

    Thank you so much for this AWESOME tutorial! Every step was worked perfectly.

  163. huseini

    wow, just fantastic steps, every step was described, even how to save and exit editor in linus, Thank you

  164. misbah

    Good tutorial

  165. TED

    This is one of the best support pages I have experienced in my entire coding life span. I am 80 years old, I started learning how to code 5 years ago and in my humble opinion it is not easy, however it becomes easier to understand each day I continue to learn. This particular page was extremely helpful with your detailed and specific instructions/guidelines. They (instructions/guidelines) were easy to understand and follow, I did not have to go to another page to get explanations for anything. THANKS, I really like your style.
    T.R.E.B.

    1. DevAnswers

      Thanks for the comment. Never too old to code! 😎

  166. duonghc

    Great post!
    Thank you so much!

  167. Bob Hope

    Unfortunately your tutorial seems to have made things worse, with an error coming up:

    Error during session start; please check your PHP and/or webserver log file and configure your PHP installation properly. Also ensure that cookies are enabled in your browser.

    session_write_close(): write failed: No space left on device (28)

    session_write_close(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/sessions)

    If anyone has any answers, then would be much appreciated!

    1. DevAnswers

      What disitrubtion of Linux are you using and version?

  168. Arafat

    i always look at digitalocean for good tutorial for this kind of job. now i found another one.

    truly thanks

  169. Leandro

    Thanks!!!
    Works on Ubuntu 18.04 php7.2 and phpmyadmin 5.0.2

  170. Giovanni Correa

    Muchas Gracias el phpmyadmin me tenia sufriendo y no sabia porque era pero gracias a tu
    pagina lo pude soluciona un saludo esta muy completa la explicacion.

  171. Victor Diaz

    Hola realice los camnios y todo funciono perfecto, pero Edite vendor_config.php y dejo de funcionar y ya no puedo hacer inicio en phpmyadmin.

    Que puedo hacer para corregir.

    gracias

  172. Rajeev

    Thanks. Works on Ubuntu 18.04 php7.2 and phpmyadmin 5.0.2

  173. JPA

    Thank you so much. It works like a charm!!!

  174. fomm

    Thank you very much.

    This tutorial is very helpful with all the details and commands we need to fix the problem.

  175. Shanu Kumar

    Hello .. I am Using Google Cloud..I Just Updated Php Version to 7.3 and followed your process but after doing that when i try to log in phpmyadmin it says..PHP 7.1.3+ is required.
    Currently installed version is: 7.0.33-0+deb9u7….But When i check through SSH It says 7.3 ..Please Help what to do..

    1. DevAnswers

      You may have updated the CLI PHP version that runs in command line only. Ensure you have also updated PHP for Apache or Nginx.

      To find out which PHP version the web server is using, create a new PHP file in your document root called info.php with the following:

      <?php
      phpinfo();
      ?>

      Load that in the browser and it will report which PHP version you are using.

  176. no name

    thank you!

  177. simo

    thanks a lot, it works

  178. vbauss

    Thank you so much !!

  179. Abhay

    Wonder Full, hardly a 5 min job. Thanks A TON!

  180. MoBO

    This is perfect! But if you’re running NGINX or Apache2 and you assign these services to a user, you’ll need to change the ownership of /var/lib/phpmyadmin/tmp &amp;&amp; /var/lib/phpmyadmin/blowfish_secret.inc.php &amp;&amp; /var/lib/phpmyadmin/config.inc.php to your user.

    Where user == Your User Name

    sudo chown user.user /var/lib/phpmyadmin/tmp
    sudo chown root.user /var/lib/phpmyadmin/blowfish_secret.inc.php
    sudo chown root.user /var/lib/phpmyadmin/config.inc.php
  181. Jack

    Perfect Tutorial!

    Upgraded in a couple of minutes.

    Thanks!

  182. Luiz Vidaum

    A solução mais simples e rápida que encontrei até agora. Parabéns.

    E, para quem se interessar e tiver o mesmo problema, utilizao Ubuntu 18.04 em WSL (Windows 10 Home), PHP 7.4, Apache2 e Mysql.

    Muito obrigado e sucesso!
    Receba um abraço deste brasileiro.
    Luiz Vidaum
    São Paulo/Brasil

  183. hexacube

    Perfect tutorial. I have upgraded in 2 minutes. No issues at all. I didnt get that blowfish warning too.

  184. Dan

    Fantastic. Thanks you very nuch

  185. Igor

    Uhll! I think I’m close! 90% of my bugs disappeard. The only issue (new one) is “Failed to read configuration file!”

    define('CONFIG_FILE', '/etc/phpmyadmin/');

    I was trying to find a solution before reaching you. The problem is that there is a message “This usually means there is a syntax error in it, please check any errors shown below.”, but the field bellow is empty. Any idea what could be? Thx in advance.

  186. Duco

    Hi, after doing everything you told me to do, I still got the exact same two errors… can you help me?

    1. DevAnswers

      Can you copy and paste me the information under “Web server” and “phpMyAdmin” on this page?

  187. djimel

    Génial…bravo et merci…
    Djimel

  188. Espen

    Fantastic!

  189. DevStay

    Very good! Thanks man…

  190. DevStay

    Great!! Thank you…

  191. Vassilis

    Hi sorry for this, everything works and I can clearly see the latest 5.0.2 version, but I have the issue that if I run “apt update” it tells me that my installed version is 4.6.6 and fails to upgrade to the proposed 4.9.5. Is there a way to fix my apt in a way that it will understand that my version is now 5.0.2? many thanks

    1. localghost

      Yes, I have exactly the same issues here. After manually updating PMA to 5.0.4 I was surprised to see that it was downgraded to 4.6.6deb5ubuntu0.5 again.

  192. vassilis

    thank you so much!

  193. Tony Metogo

    hello i have this error which is displayed at the bottom of my page how to fix it please
    $cfg[‘TempDir’] (/var/lib/phpmyadmin/temp/) is not accessible. phpMyAdmin is unable to cache models and therefore will be slow.

    1. DevAnswers

      The directory is /tmp, not /temp.

      define('TEMP_DIR', '/var/lib/phpmyadmin/tmp/');
      
  194. Bohdan

    Thanks you very mush!

  195. nedvajz

    thanks!

  196. Jordi Belloc

    It worked like a charm! Many thanks. Great post and great site!

  197. wissper

    Superb – you anticipated all the hiccups I would find. I never had to look anywhere else for once! lol

    Thanks mate.

  198. henry

    Hello… Many thanks for this, it help perfectly. Very good job.

  199. SafetyFast

    Perfect! Thanks for sharing this!

  200. zukamzukaTZ

    thanks alot, I was about to go back to selling drugs….. but then again it happens with every bump in the way

  201. Mtuwanguvu

    Thank you! This saved me a lot of grief

  202. Giuseppe

    I’ve installer Php FPM 7, 7.1 , 7.2, 7.3 but phpmyadmin still uses php5.6 so I can’t upgrad to v5.xx . How can I change the version of php that phpmyadmin uses? Thanks

    1. DevAnswers

      Is it Nginx? You might need to change your server block to use the PHP7 socket.

      This article might be of use: Installing PHP for Nginx

  203. Anthony Allen

    Thank you sir!

    If possible suggest to audience to wget to a different directory, maybe home but not /usr/share/phpmyadmin.

    Well done. I appreciate this!

  204. Digital Essence

    Thank you. Sorted out my Raspberry Pi install. Nice easy to follow instructions.

    Appreciated.

  205. Leon

    Thanks a lot for your support!.

    Regards!

  206. Bogdan Gheorghe

    Small correction is about caps.

    On CentOS, phpmyadmin = phpMyAdmin on all folders.

    sudo mkdir /var/lib/phpMyAdmin/tmp/
    sudo chown -R apache:apache /var/lib/phpMyAdmin/tmp
    sudo chmod -R 0755 /var/lib/phpMyAdmin/tmp/

    All working great

    1. DevAnswers

      Many thanks for this. The guide has been tested on Debian distributions but not CentOS.

  207. ahmed

    Thank you so much

  208. alebal

    Hi, I update to phpmyadmin-5.0.1 in centos 8, but the 2 errors doesn’t disappear… this dir /etc/phpmyadmin/ don’t exist and my server can’t create it..

    cd /var/lib/phpmyadmin/tmp/

    -bash: cd: /var/lib/phpmyadmin/tmp/: No such file or directory

    sudo mkdir /var/lib/phpmyadmin/tmp/

    mkdir: cannot create directory ‘/var/lib/phpmyadmin/tmp/’: No such file or directory

    what can I do?

    1. DevAnswers

      I think the default phpMyAdmin directories are different on CentOS. Try searching for the directories.

      find / -type d -name 'phpmyadmin'

      You may have to manually list some directories until you find /tmp/ and the install directory.

  209. nntp

    Very Well!!!

  210. Felipe

    Thanks, it worked, eh fixed the error

  211. AmooAti

    Thank You

  212. Cocest

    You have saved me countless hours. Thank you.

  213. ehjohnyk

    Thank you 🙂

  214. Stefan

    Thank you devanswe.rs!

  215. Milad

    Honestly, The Best Tutorial about Ubuntu I’ve seen before , Specially for beginners . Thanks for this beginner friendly How To .

  216. Juan

    muchas gracias por el aporte

  217. Bodo Dendron

    Perfect Tut! Thx!

  218. pedro

    thanks alot, works like a charm

  219. xu

    nice,perfect,thank you very much.

  220. ashish

    the count() error was really frustrating. Thank for great help.

  221. Perry

    Thanks a lot, works like a charm.

  222. RK

    Awesome – thank you!

  223. Broke Vegan Guy

    Very cool. All that red was annoying.

  224. Crew

    Thank you. Works great! And for the all lazy men as myself you can use something like this bash script for automatic upgading to latest version:

    mv /usr/share/phpmyadmin/ /usr/share/phpmyadmin.bak
    mkdir /usr/share/phpmyadmin/
    cd /usr/share/phpmyadmin/
    wget -q https://www.phpmyadmin.net/downloads/phpMyAdmin-latest-all-languages.tar.gz
    tar xzf ./phpMyAdmin-latest-all-languages.tar.gz
    rm ./phpMyAdmin-latest-all-languages.tar.gz
    pma_dir=$(ls ./)
    mv ${pma_dir}/* /usr/share/phpmyadmin
    rm -rf ${pma_dir}
    sed -ri “s/(.)TEMP_DIR(.)/define(‘TEMP_DIR’, ‘\/var\/lib\/phpmyadmin\/tmp\/’)\;/g”
    
    1. DevAnswers

      Good idea. Thanks!

    2. tyfon

      sed -ri “s/(.)TEMP_DIR(.)/define(‘TEMP_DIR’, ‘\/var\/lib\/phpmyadmin\/tmp\/’)\;/g”
      -bash: syntax error near unexpected token `(‘

  225. Stefan

    Great tutorial, works like a charm! Thanks for the help!

  226. Andrea Bisello

    it works like a charm,
    thanks.

  227. ali naseri

    very Helpful
    thank you so much 🙂

  228. Tyra

    Version 4.9.4 is now available 🙂

    1. DevAnswers

      Thanks

  229. Jean-Luc

    Great tutorial but version 4.9.3 is now available.

    1. DevAnswers

      Thanks.

  230. Thomas

    Great! Working!!

  231. Neo

    Great Tutorial !!! Thank you, Works flawlessly and saved me a lot of work

  232. Daniel

    Hey, that was an absolute piece of cake! Worked great exactly as following your instructions. I have my own server i performed these instructions on. Thanks so much.

  233. Stuart Pringle

    Awesome job. Many people would give a solution like this without the step-by-step commands required (since they’re mostly simple), but you went that extra mile and it makes things just that much easier. This method of upgrading phpmyadmin worked perfectly – thanks!

  234. Scott

    Spot on flawless instructions. Thanks!

  235. sugonjakas

    Thanks!

  236. Arthur

    phpMyadmin upgraded to 4.9.2.
    Tutorial continues to work perfectly.

  237. Designer001

    Thanks a lot !!! It works perfectly sir

  238. ranicrab

    Hi – looks like version 4.9.2 is now available – thanks for this guide! I plan to use it this week!

    1. DevAnswers

      Thanks. Updated.

  239. manuel

    Genial
    Funciona Perfecto

  240. Suresh

    Awesome.. Solved my issue in a jiffy.. Thanks a ton for this guide 🙂

  241. 404needaname404

    Perfect!!!
    Concise!!!!
    Works Great The First Time!!!
    Didn’t cause any additional errors or issues!!!!!
    Thanks!!!!

  242. Vaibhav Malhari Fuke

    Clearly Well Explained. Thank you very much.

  243. Bob

    Thanks worked perfect on my Raspberry 4 w/Debian Buster.

  244. ting

    Do I need to say more than has already been said below – a great and very worthy resource, thank you.

  245. Osama Abdelhady

    Many thanks indeed

  246. Li

    Nice, it works for me. Thank you so much!

  247. Nicolas

    Great Job ! Clear and efficient. Thx 😉

  248. Christophe Abbadie

    Really easy and clearly explained. Great job ! Thanks for this !

  249. Filip

    Easy ! Super ! Thanks a lot !

  250. Frank Muens

    I never read such an easy and clear description! Thanks a lot! Frank

  251. bob

    Hello
    After i did the above I get a 403 in the browser 🙁 Any ideas?

  252. Manuel Jacquez

    Wow great tutorial, helped a lot, clear and concise
    bookmarked… thanks!

  253. Webster

    Absolute Legend!! Thank you for this!

  254. Dunx

    Anything that ends with “hurrah” gets my vote. Problem sorted. Ta.

  255. Jens

    Wonderful. I clean case of “damn, wonder if anyone else has… google … working solution”.
    Extra good to cover those possible errors and explain them. Saved me time and was educating too. Thanks!

  256. Hank

    I works like a charm! Thanks alot!

  257. John P Ritchey

    You’re awesome, as usual. Enjoy the good karma, and ty for taking the time, it is appreciated.

  258. Makkaoui

    nice work ! it works without issues thank you very much

  259. Julian Wagner

    worked like a charm ubuntu18 and deleted the error, nice leave a reply section also.

  260. Roberto Tavares

    Worked perfectly with Ubuntu 19.04 and phpMyAdmin 4.9.1. Thank you.

  261. Gaetano

    thank you! …. now is ok!

  262. Dan Cacovean

    Simply, the best tut!!!

  263. Matthias

    Thanks! That helped me learning things!

  264. Roy Lamontagne

    You deserve a hurrah for creating a simple direct useful answer.

  265. Paul M

    Fantastic. Worked exactly as described. Was able to update from 4.6.6.5 to 4.9.0.1 on Ubuntu 18.04 LTS.

  266. Ronnie T

    Works flawlessly. This is by far the best article on this topic! Thank you

  267. Özgür Erdem

    Peope were looking for this solution on other websites, a lot of wrong or temporary answers that leads to other errors, but this article… Awesome, thanks!

    1. Özgür Erdem

      Oh and, I needed to update it to the latest alpha version.

  268. Tiago Oliveira

    Nice! Thank’s bro! =]

  269. Jerry

    Glad i made a backup.
    the new phpmyadmin is only giving me a white screen (even tried copying the config.sample.inc.php did not help)
    so change the dir to phpmyadmin.new and renamed the backup folder back to phpmyadmin
    but with the old one i also had a blowfish error
    this define(‘CONFIG_DIR’, ‘/etc/phpmyadmin/’); is giving an error 500 when changed in the vendor config file

  270. Jerry

    Thanks for this.
    Do you also have a solution where, once logged out, you can’t immidiately log-in again? I have to wait some time like an hour or so. I can’t find a good solution for that.

    Thanks!

    1. Jerry

      found it on your site

  271. Jerry

    Thank you!

  272. Charly

    Perfect, Thanks. Works on Raspi!!!

  273. Lluís

    Thanks
    This runs!

  274. intmarine

    Exactly well done.

  275. Eole

    Thank you,
    this is really helpful and clear. I appreciate the clean-up part 😉

  276. Matthias

    PERFECT! Thank you so much – it solved my problem.

  277. Daniel Soloway

    Amazing!!! Thank you soo much. Very clear and easy to follow.

  278. Paul Hicks

    This was excellent – clearly written and bang up to date and all worked smoothly and well. Thank you so much!

  279. TONY GIANNOTTA

    Everything is perfect, thank you very much !

  280. Ernie cooper

    Thank you very much! not one hicup!

  281. lama

    GOD THANK YOU

  282. Jonathan Orrego

    Thanks a lot for the time you spent helping us!

  283. Ed

    THANK YOU!! I have seen and tried to follow so many TUT’s, and too often they’re missing some final step, or outdated, or just not helpful. Within minutes my annoying MYSQL server has morphed into an error free and comfortable environment in which we can work.

    Really, excellent job!

  284. eFMer

    Thanks, worked without a hitch on a Linode Ubuntu.

  285. Cyrus Frost

    This worked like a charm, thanks!

  286. Retrorooter

    I encountered multiple errors after installing the default PhpMyAdmin version 4.6.6.deb5 that came with my Ubuntu 18.04 distribution. Your guide solved them all in one fell swoop. Excellent instructions and many thanks!

  287. Max

    It would have been absolutely possible to figure that out, but this fine turn-by-turn manual sped up the whole operation in the most pleasant way.

    T H A N K _ Y O U very much

  288. waxcruz

    Clear, precise, and extremely useful. Great work!

  289. garsax

    How to automate this on a simple script:

    $ nano phpmyadmin_update.sh

    echo "Backing up"
    mv /usr/share/phpmyadmin/ /usr/share/phpmyadmin.bak
    
    echo "Getting lastest PHPMyAdmin version..."
    mkdir /usr/share/phpmyadmin/
    cd /usr/share/phpmyadmin/
    wget https://files.phpmyadmin.net/phpMyAdmin/4.9.0.1/phpMyAdmin-4.9.0.1-all-languages.tar.gz
    tar xzf phpMyAdmin-4.9.0.1-all-languages.tar.gz
    mv phpMyAdmin-4.9.0.1-all-languages/* /usr/share/phpmyadmin
    
    echo "Updating vendor_config"
    sed -i -r "s/('TEMP_DIR'\s*,)[^\)]*/\1 '\/var\/lib\/phpmyadmin\/tmp\/'/" /usr/share/phpmyadmin/libraries/vendor_config.php
    sed -i -r "s/('CONFIG_DIR'\s*,)[^\)]*/\1 '\/etc\/phpmyadmin\/'/" /usr/share/phpmyadmin/libraries/vendor_config.php
    
    echo "Cleaning up..."
    rm /usr/share/phpmyadmin/phpMyAdmin-4.9.0.1-all-languages.tar.gz
    rm -rf /usr/share/phpmyadmin/phpMyAdmin-4.9.0.1-all-languages
    rm -rf /usr/share/phpmyadmin.bak
    
    echo "Done!"
    echo
    1. garsax

      For future reference, this is the updated script to download the last stable version of PHPMyAdmin:

      `echo
      echo “Backing up”
      mv /usr/share/phpmyadmin/ /usr/share/phpmyadmin.bak

      echo “Getting lastest PHPMyAdmin version…”
      mkdir -p /usr/share/phpmyadmin/
      cd /usr/share/phpmyadmin/
      wget https://www.phpmyadmin.net/downloads/phpMyAdmin-latest-all-languages.tar.gz
      tar xzf phpMyAdmin-latest-all-languages.tar.gz
      mv phpMyAdmin-/ /usr/share/phpmyadmin

      echo “Updating vendor_config”
      sed -i -r “s/(‘TEMP_DIR’\s,)[^)]/\1 ‘\/var\/lib\/phpmyadmin\/tmp\/’/” /usr/share/phpmyadmin/libraries/vendor_config.php
      sed -i -r “s/(‘CONFIG_DIR’\s,)[^)]/\1 ‘\/etc\/phpmyadmin\/’/” /usr/share/phpmyadmin/libraries/vendor_config.php

      echo “Cleaning up…”
      rm /usr/share/phpmyadmin/phpMyAdmin-latest-all-languages.tar.gz
      rm -rf /usr/share/phpmyadmin/phpMyAdmin-*
      rm -rf /usr/share/phpmyadmin.bak

      echo “Done!”
      echo
      `

  290. Milad

    Best Tutorial I’ve ever seen before !
    Thanks for the good and comprehensive Explanation 🙏

  291. Joel Alfaro

    Muchas gracias!!!

  292. mohammad

    thanke you so much

  293. theTHoR

    thank you very match brada 😉

  294. René

    Gracias, funciono perfecto.

  295. imad araar

    thank’s a lot … it works perfectly !

  296. Richardmax

    great post!! congratulations!!

    thank you very much

  297. Gabriela

    phpMyAdmin 4.9.0.1 is now available 🙂

    1. DevAnswers

      Thank you. Guide updated 🙂

  298. Stefan Haselwanter

    Works smoothly! Thanks!

  299. Frank Langenberg

    Thank you. Worked perfectly.

  300. Kohila

    It didn’t work for me.
    Getting this work
    The $cfg[‘TempDir’] (./tmp/) is not accessible. phpMyAdmin is not able to cache templates and will be slow because of this.

    1. Alex

      This was happening to me too. I figured out it was a permissions problem. Here’s what solved it for me, use at your own risk (make sure not to include the $, it just shows the line is a command):

      $ cd /var/lib/phpmyadmin
      $ sudo chmod 775 tmp

  301. cygnatius

    wonderful!

  302. Gwenaël

    Thank you. Worked perfectly.

  303. D

    It works. Thank you very much for detailed instruction. 🙂

  304. Steve Mcmann

    This really helped me out. I was struggling with this issue for hours. Thanks

  305. Scott

    Perfect solution! Thanks! You might mention that, for Steps 2 and 4, the substring “all-languages” can be replaced with “english” in any command with that substring. The installation will then be a bit lighter, without the several MB of language files that are not needed when it’s known that only the English interface will be used.

  306. Tadeusz Sasnal

    Thanks. it. Works for me.

  307. Lucas

    Thank you! Works like a charm!

  308. karcsika

    You are awesome! Thank you!

  309. John

    Works like charm. Thanks buddy

  310. tarciso

    Thanks, perfect!…. Valeu …..

  311. Melquiade

    Excelente, me funciono completamente, muchas gracias!!!!!

  312. Gareth Martin

    Worked like a charm, thank you very much!

  313. Mike Brady

    Yus!

  314. Gerhard

    Thanks, perfect!

  315. Umit Gulsen

    Thanks, perfect!

  316. UbuntuAdmin

    Thank you DevAnswers! 🙂

    1. DevAnswers

      🤟

  317. John

    Works a treat 🙂 Thanks!

  318. jfberar

    Merci, thanks a lot for your perfect tutorial

  319. nanobyte

    works perfectly on ubuntu 18.10.
    It seems that the phpmyadmin package on ubuntu isn’t tested before it released on apt.
    Yet another reason for me to move to Arch..

  320. Kater Akeren

    It works perfectly well. Kind regards.

  321. Bryan Allen

    Worked great! For some reason the copy past of the wget command did not work. I had to copy the URL from the website to download it. Same version you used though.

  322. Rafael Gomes

    Thanks!

  323. William

    Thank you. Excellent post.

  324. Juan

    Thanks!!

  325. Sander

    Works perfectly, thanks so much!

  326. Pierre

    Great !

  327. 3v3r3st

    Excelente Gracias……

  328. Jeff

    These are some of the most complete instructions I have ever read. They worked perfectly.

  329. Marian

    It was annoying and now it’s all perfectly working.
    You are the champ
    Thanks

  330. Eogan

    Impeccable, merci !

  331. Luis Carlos

    El mensaje ya lo tengo solucionado.

  332. someRandomGuy

    Thank you so muuuuuuch
    very easy to apply, works like a charm on Ubuntu 18.04.1 LTS

  333. Razvan

    Great man Thanks!

  334. Harold Snippert

    Excellent tutorial, you saved me from a ton of errors!!!

  335. Dara

    You save me man! kkkkkkkkkkkkk Thank you so mach.

  336. Luis Carlos

    Todo el tutorial ha funcionado muy bien ; pero tengo este mensaje:
    El almacenamiento de la configuración de phpMyAdmin ha sido desactivado.

  337. leslin

    the error still exists.

  338. Jawid

    Brilliant, zero errors. Thanks man

  339. Ruben Garza

    Awesome!

  340. Mishelle

    Hola muchas Gracias !!!

  341. Neovorg

    Perfect! This works like a freakin’ charm.

  342. steph78630

    Juste 2 mots : PARFAIT et MERCI !!!!!!!

  343. Jason Olsen

    Straight to the point, worked perfectly. Thank you!

  344. Haydn

    Great tutorial, worked a treat. Thanks.

  345. bassman

    Excellent, clair, concis et précis

  346. Dalton

    Awesome Post! Worked Perfectly!

  347. Marc

    You solved the problem.
    Thank you.

  348. Fred Dmn

    Great job!

  349. Romain

    Zero error, the perfection…
    Congrats and thank you!

  350. Gabriel Garcia

    TKS!!!!!!!!!!!!!

  351. A.L.

    Thank you!!

  352. Yaacov

    Thank you very much for this excellent article.

  353. Tom C

    An absolutely perfect article. Very easy to follow and works flawlessly.

  354. turkey

    Perfect tutorial! Thx

  355. Marc

    Thank you very much!
    It was easy to follow, clean, and it corrected the problem.

  356. Dux Linux

    Save my time!!!!
    Shame that we need this overkill approach these days, but hey, thumbs up bro’

  357. Clement

    Very well, for my part, step 3 is not to do it is she who created the problems. so I cancel the 3.

    Ubunut Budgi 18.04.2 LTS

  358. Photorat

    Thanks a lot for this clear and excellent tutorial ! 🙂

  359. Shawn

    Yes! worked perfectly. Thanks!

  360. Hamza

    Easy, thanks to you buddy

  361. Philippe

    Wow! Clear and accurate steps. This is the best resource ever!!

  362. Stephen J.

    Thanks a lot!! worked!!

  363. admin_py

    easy easy, Thanks a lot!!

  364. InfoavanceTechnology

    Excelente guia! Todo funciona perfecto. Muchas gracias

  365. SuxerHD

    That was so easy! Thanks dude!

  366. Peter

    Thanks a lot. Solved it!

  367. Craig

    So nice when every single step works. Thank you!

  368. coolroi

    Thank you bro!

  369. jbkl

    I get an error about blowfish.

    The secret passphrase in configuration (blowfish_secret) is too short

    1. DevAnswers

      Open the file /var/lib/phpmyadmin/blowfish_secret.inc.php

      Search for blowfish_secret and generate a random string at least 40 chars long.

      $cfg['blowfish_secret'] = 'your_long_string';

      Save and exit.

      1. fabioga

        Very very thx!!!

  370. raianests

    Perfeito! deu tudo certo. Obrigada:)

  371. KalerDev

    Thanks.

  372. Alessandro

    Just for future visitors, to me it said newer version is 4.8.5 at current date.
    I did the same operations using 4.8.5 instead of 4.8.4 and it worked like a charm.
    Thanks for your help really!

  373. Waterleat

    Brilliant! now I can use my localhost properly again.

  374. gabriel de luca

    Excellent, works perfect

  375. marc

    Thank you. worked finally

  376. Thiago

    Thanks bro!

  377. Ajinkya

    thanks man… love you

  378. John Doe

    The best guide. I like the step by step as I’m noob in this server setting.

    My PHPMyAdmin is working now! Yeay! Thanks a lot!

  379. fracano

    Great!!!

  380. Juan Pablo

    Possibly the best explanation guide I’ve seen in my life, great.

  381. Roberto

    Accurate, simple and straight to the point. This is how every guide should be done. A very good job, mate! Thanks a lot!

  382. Erik

    Thanks for this guide! Now I can do the next step, upgrading PHP to 7.2/7.3 on Debian 9!

  383. Carlos

    Genial: Ha funcionado de maravilla y sin ningún error. Eres un artista.
    Muchas GRACIAS. Saludos

  384. Gustavo Romero oltehua

    gracias eso fue de mucha ayuda

  385. flw

    Perfect guide!
    Thanks

  386. James

    Fantastic, worked great.

  387. Issam Mousleh

    Great, Thanks

  388. Attila

    Nice guide!
    thanks for work.

    i hav got a warning after proccess this guide:
    ” Auf das $cfg[‘TempDir’] (./var/lib/phpmyadmin/tmp/) kann nicht zugegriffen werden.”
    => access denied.
    But i hav chown usr “www-data” & grp “www-data”.

  389. Glenn

    Fantastic guide!
    It worked like a charm – thank you! 😀

  390. Suraj Kumar

    Worked perfectly, thanks!!

  391. Tom M.

    Worked like a champ. Excellent directions. This is Jan 1, 2019 and they still haven’t updated the repositories! Thanks for putting this together.

    1. DevAnswers

      Still? It’s no wonder this article is pulling so much traffic. 🙂

  392. Aoued

    Perfect !!
    Thanks

  393. Arpit Awasthi

    Worked perfectly 🙂

  394. pat

    super tuto.
    merci, thanks you

  395. Allan V Pimble Sr

    Just what I needed. Thank you very much.

  396. Ash

    Excellent post! Very well explained, and gets the job done efficiently. Thanks ^_^

  397. Kim

    Great post, works perfectly and exactly what I was looking for! Thank you!

  398. Thomas Andre

    Wieder mal alles bestens…
    Vielen Dank!

  399. Joshua

    Hello. This worked perfectly. Thank you for posting this, it’s the only real answer to this that I’ve been able to find.

  400. gus

    it works !!! thanks !!

  401. VladS

    Thx worked nicely but is still get :
    The secret passphrase in configuration (blowfish_secret) is too short.
    Any tips?

    1. Allan V Pimble Sr

      You probably missed the second edit :

      where he changes:
      define(‘CONFIG_DIR’, ‘ ‘);

      to:
      define(‘CONFIG_DIR’, ‘/etc/phpmyadmin/’);

      1. Suresh

        Check the Comments above.. has a solution for that as well.. Worked like a Charm..

  402. JohnD

    Superbly done !

  403. JurajH

    Thx, working also 4.8.4

  404. NeedHelpOnBasicallyEverything

    Stilll working for phpmyadmin 4.8.4

  405. an

    Excelente Funciono Gracias.

  406. miguel

    De lujo, Gracias

  407. Leonardo Navarro

    funcionó perfecto

  408. El Manu

    A big thanks for this detailed guide, worked like a charm !

  409. MrJoVa

    best guide to solve the problems! thank you very much!

  410. vikas

    Awesome thank you for this solution , kudos to you sir

  411. TonyM

    this worked perfectly thanks heaps

  412. Tim Straiton

    Thanks for publishing a really clear and concise procedure. I’m a fan!

    1. DevAnswers

      🙂

  413. grey

    Спасибо!

  414. Paul W

    Thanks, It worked like a charm 🙂

  415. ldleon

    Thank you .=)

  416. Alwin H.

    Thank you, works very well!

  417. Alwin H.

    Danke!

  418. Asa

    Big Thank You

  419. Andrés Mosquera

    Perfecto, Gracias!!!!

  420. Stuart Mitchell

    Awesome… perfect first time.

  421. Kay

    thanks buddy, it worked, less than a minute

  422. Danny

    Clear, concise & accurate instructions.
    Great use of the command line and a ‘workflow’ process.
    And it worked 🙂

  423. Frank

    thank you

  424. Davis Lasis

    I did reinstall mysql and phpmyadmin multiple times in my raspberry pi ubuntu 18.04 server. phpmyadmin still had issues, but this manual totally helped. Many thanks

  425. Jorge Toledo

    oHHHH SO GOOD, THANKS A LOT WORKS!

  426. Johann

    thanks a lot works great 😉

  427. rfq_

    Very neat explanation.. thank you!

  428. MárioC

    Excellent! Thank you!

  429. Fabio Bianchi

    Excellent tutorial!! Thank you!!

  430. Newbie

    Worked!

  431. Joe W

    Thank you!!! Hero level. Direct, to the point, and top of search results. BRAVO.

  432. HenryGR

    Bravo!
    Impeccable work, big thanks!

  433. Daniel

    Thank you, sir!! Very helpful

  434. mukesh kumar

    thaks a lot man u r legend

  435. ed49

    sank you for tutorial. really great work!

  436. VitFL

    Thank you very much

  437. Khuong DV

    Thank you for helping me resolved issue.

  438. michael

    Spot on. Thanks for the help!

  439. Mark

    perfect. thanks.

  440. Feeebox

    clean, understandable and perfectly

  441. leo

    Perfecto

  442. Richee

    Fantastic thanks

  443. Carlos

    great- Thank you
    it fix the issue

  444. Catherine Waldron

    Thank you!

  445. Marian Petrov Hristov

    Thank you very much

  446. Jay

    Duuuuuude….[Chandler voice], you are awesome!

  447. Sergey

    Thank you

  448. Alexander

    Perfect! <3

  449. ckchai

    awesome… thanks alot

  450. Keepmelinked

    Wow, thank you so much. I am error free!

  451. Rony

    Thank you, now there is no error. Mantaff

  452. Roger

    Perfect! Thank you

  453. Kejml

    Works like a charm, thank you a lot!

  454. Tomato

    Many thanks! No more errors! It works!

  455. Russ Libby

    After a few months of aggravating error messages you solved the problem! This worked just as you said and is wonderful!!!!!! Can’t thank you enough.

  456. Jose Luis

    Thank you very much, it worked well for me.
    Linux Mint 19

  457. kamel

    hello,
    please help, i have mysql 8, php 7.2.7
    i installed phpmyadmin 4.6.6 and i had this errors, so i upgraded to 4.8.3 like you did but the errors still exists.
    please help

    The phpMyAd*min configuration storage is not completely configured,
    some extended features have been deactivated. Find out why. Or
    alternately go to ‘Operations’ tab of any database to set it up
    there. Open new phpMyAdmin window.
    mysqli_real_connect(): (HY000/1045): Access denied for user
    ‘phpmyadmin’@’localhost’ (using password: YES).
    Connection for controluser as defined in your configuration failed.*

  458. Youssef

    Extra fine, Thanks (Merci beaucoup)

  459. Mohamad

    all worked very well and very easy

  460. dnaite

    work like a charm.
    finally i can sleep tonight 👍

  461. O

    Thx a lot.

  462. Morogould

    Worked perfectly! Thank you very much for solving my problem!!

  463. Pierre

    Thanks, excellent. Just a problem : the automatically generated blowfish secret phrase was too short : 24 chars, yet 32 needed. Modified in var/lib/phpmyadmin/blowfish_secret.inc.php (Raspbian)

  464. uttam hathi

    grt, worked for me am on ubuntu 18.04

  465. miJ

    Fixed. This is how tutorials should be. Thank you.

  466. Uzma

    Excellent tutorial! Simple straightforward steps 🙂

  467. dev

    thank you very much

  468. Alex

    I have read tens of guides for Linux and no one was so simple and useful. I’d want to all guides was like this. Thank you.
    (sorry for my English, i’m not a native speaker)

    1. DevAnswers

      Thanks for the comment 🙂

  469. Nicco

    Awesome! This was extremely easy to do and it fixed my problem!

  470. Jim MacDiarmid

    Thank you! it worked! 🙂

  471. damon

    Thanks a lot, it worked perfectly!

  472. sTEk

    Works perfect! Thank you so much!

  473. M. Sonius

    Super! Straight to the point, clear tutorial… Worked like a charm!

  474. Fabien

    Perfect, worked flawlessly, thanks.

  475. Ben

    Thanks. Worked without any error message.

  476. Diego Miranda Neves Gomes

    Thank You! This article resolve my problem!

  477. Gert

    Excellent! A great help! Thx!

  478. Barnaby

    Very thorough tutorial with a successful outcome for me. BOOKMARKED!

  479. Tom

    Thanks very much all working fine now.

  480. caytro

    Thank you ! Excellent tuto :o)

  481. Mansur

    Thank you, i really appreciate your tutorial. The errors have been bugging me for a while, now all is fixed. Best regards and keep up the good work.

  482. Danaq

    Within the created DIR "/usr/share/phpmyadmin" is a file calles “config.sample.inc.php”.
    Open it, add a 32char alphanumeric string as value of “cfg[blowfish_secret]” and safe it as “config.inc.php”.

    While in the editing of

    "/usr/share/phpmyadmin/libraries/vendor_config.php"

    DO NOT replace

    "define('CONFIG_DIR', '');" by "define('CONFIG_DIR', '/etc/phpmyadmin/');".

    Instead take the path to the just altered “config.inc.php”. Take care, (maybe) because of the updating-process, there are minimum 2 other “config.inc.php” on your system under
    1) “/var/lib/phpmyadmin” (is empty)
    2) “/etc/phpmyadmin/” which will load the “blowfish”-file from “/var/lib/phpmyadmin”.

    In my case it was just possible to satisfy the error-message when pointing to “/usr/share/phpmyadmin/config.inc.php” with filled “blowfish_secret” as “CONFIG_DIR”.

    Finally, thank you very much for this guide.

    1. DevAnswers

      Why not just set define('CONFIG_DIR', '/etc/phpmyadmin/'); ?

      This gets rid of the blowfish error.

  483. Simon

    Hello,

    It was working till yesterday, Now i cant find config.inc.php and setting up blowfish_secret in this blog

    1. DevAnswers

      There is an easier method to get rid of that error. Open /usr/share/phpmyadmin/libraries/vendor_config.php, search for CONFIG_DIR and change it to:

      define('CONFIG_DIR', '/etc/phpmyadmin/');

  484. Dimitar Stoichev

    A quicker fix for the blowfish_secret :

    sudo nano /usr/share/phpmyadmin/libraries/vendor_config.php

    Press CTRL + W and search for CONFIG_DIR

    Change line to:
    define(‘CONFIG_DIR’, ‘/etc/phpmyadmin/’);

    1. DevAnswers

      Thanks for the tip, Dimitar. Post updated.

  485. Sid

    Thank you for this article, very clear.

  486. Trevor R

    Wonderful straight forward, easy to follow write up. Very well done. And most importantly, thank you for posting this tip to fix this issue for Ubuntu 18.04 users! (Not that it matters as it’s the same Ubuntu as in pure Linux, but implemented this fix in Windows Subsystem for Linux – Ubuntu 18.04)

    1. DevAnswers

      Many thanks for the kind words.

      🙂

  487. andy

    sir im new to this why is it after following this steps my localhost/phpmyadmin/ is blank page now?

    1. DevAnswers

      All I can recommend is that you restore your backup.

      sudo mv /usr/share/phpmyadmin/ /usr/share/phpmyadmin.del

      sudo mv /usr/share/phpmyadmin.bak/ /usr/share/phpmyadmin

      Check that phpMyAdmin is working again.

  488. Marty

    Perfect tutorial many thx

    1. DevAnswers

      Glad it helped 🙂

  489. montassar

    thank u so much

    1. DevAnswers

      You’re welcome!

  490. R.

    Thank you!
    Works like a charm 🙂

    1. DevAnswers

      🙂👍

  491. Tony

    Thanks!

    1. DevAnswers

      👍

    1. DevAnswers

      No probs!

  492. Kmar Akrout

    works Fine For Me 😀

    1. DevAnswers

      👍

  493. classic7

    Thank you very much for this accurate tutorial. Everything works fine.
    Have a nice day.

    1. DevAnswers

      Glad it helped 🙂

  494. gus

    Yo realice todos los pasos pero me dejo un warning que dice
    El archivo de configuración ahora necesita una frase secreta (blowfish_secret).

    1. gus

      Buscando como arreglaro, edite el archivo config.default.php y en la linea $cfg[‘blowfish_secret’]=’ColocarValorAleatorio’

      QUEDANDO DE ESTA FORMA
      $cfg[‘blowfish_secret’] = ‘a0sfo49nadf89fa3s8f789sf78asb7p1587balz’

      segun esto se tiene que colocar un valor aleatorio, no se si sea correcto esto, sin embargo a mi me funciono.

      NOTA: para buscar la ubicacion del archivo
      sudo find / -name config.default.php

      1. DevAnswers

        Gracias por la respuesta.

  495. Sumit

    Sort out my issue. God bless you.

    1. DevAnswers

      👍

  496. Candido Fernandes

    Thanks for the tutorial, it helped me a lot.

    1. DevAnswers

      🙂

  497. José Ayram

    Thanks, nice tutorial! It’s works.

    1. DevAnswers

      Great!

      1. anurag

        in my vps server, i havenot found phpmyadmin in usr/share path..could anyone please help