The configuration file now needs a secret passphrase (blowfish_secret)
Matthew Martinez
I can resolve this blowfish_secret error on my phpmyadmin. I already added on /opt/lampp/phpmyadmin/config.inc.php a 32-character random phrase, like bellow
$cfg['blowfish_secret'] = '@PB!rQ9gf68IeNLEVIW#ro*$At=$HasX';And restarted the apache2
sudo service apache2 restartBut the error is still there. Does anyone know how to solve? I use Ubuntu 18.04. Thank you in advance <3
2 Answers
Not sure why your example didn't work, but you might try a hex char string instead of what you have. In my case I'm using an automated setup BASH script that first installs phpMyAdmin, copies config.sample.inc.php to config.inc.php, and then does this:
export SECRET=`php -r "echo bin2hex(random_bytes(16));"`
echo "\$cfg['blowfish_secret'] = '$SECRET';" >> config.inc.phpThe resulting value of $SECRET looks something like this:
8acb120e574d5b679c9d9300955e744eThe last line of config.inc.php looks like this:
$cfg['blowfish_secret'] = '8acb120e574d5b679c9d9300955e744e'; 1 You have not mentioned php version so assuming that you are on version 7.x if so, then $cfg['blowfish_secret'] entry need to be of certain length (max is 46 char), sometime this issue is caused by length of blowfish_secret passphrase in config, especially when it is shorter, just try to increase it to 45 or 46 characters.