Velvet Star Monitor

Standout celebrity highlights with iconic style.

general

The configuration file now needs a secret passphrase (blowfish_secret)

Writer 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 restart

But 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.php

The resulting value of $SECRET looks something like this:

8acb120e574d5b679c9d9300955e744e

The 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.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.