Cannot get PHPMyAdmin to recognize configuration file after upgrade (keep getting blowfish_secret error too short)

I just updated PhpMyAdmin via the command line (I added PPA manually). I keep getting the error message "The secret passphrase in the configuration (blowfish_secret) is too short. I created my own config.inc.php file in / etc / phpmyadmin using the command

sudo cp config.sample.inc.php config.inc.php 

In this file (my config.inc.php) I installed

 $cfg['blowfish_secret'] = 'wE(G|]=VPxy}UddLC8[sC1J8y$yElEU]7#_#*1fDas;doifje'; 

And restarted the server using

 sudo service apache2 restart 

I also restarted the mysql server using

 sudo service mysql restart 

I am still getting an error indicating that the blowfish_secret key is too short. (Yes, I tried to install the key EXACTLY 32 characters. This also did not work) I updated the page, cleared the cache. I even tried to set all permissions to 7

 sudo chmod -R 777 phpmyadmin 

(ONLY WATCH if it works. Don't kill me for despairing XD) However, no. Any ideas?

+11
source share
2 answers

As it turned out, I had to edit

 /var/lib/phpmyadmin/blowfish_secret.inc.php 

Just put 32 (or more) random characters between single quotes, e.g.

 $cfg['blowfish_secret'] = 'GGlkGmgpsp]9_[b2lXr5*a$BV4XO1lm+guJU3k(p$9z^9'; 

NOTE. I did not think that I would need to write this down, but your random string CANNOT contain one quote ....

+15
source

Please check / etc / phpMyAdmin / config.inc.php

+6
source

All Articles