Whether it's installed phpMyAdmin On a server Ubuntu, CentOS Or etc Fedora distribution, the message "The configuration file now needs a secret passphrase (blowfish_secret)”With red at the bottom of the index, gives headaches. Especially when configured correctly in "/etc/phpMyAdmin/config.inc.php".
Of course, the path may vary from one configuration to another, but on 7 CentOS cu phpMyAdmin installed via “yum"From"remi.repo", The config file will be located in" / etc / phpMyAdmin / ".
Okay, let's see how we solve it "The configuration file now needs a secret passphrase (blowfish_secret)", if in config.inc.php We have this line:
$cfg['blowfish_secret'] = 'gNsWq$%#%$#%EDFSsffsegbVp6LCJw6w'; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */
If this line is present and we have a "key" of more than 32 characters, the red message in phpMyAdmin should disappear.
If this has not happened, it is good to delete cookies in your browser and log out of phpMyAdmin. At the next login, the message "The configuration file now needs a secret passphrase (blowfish_secret)"He will no longer be present.
However, there are situations where it is present Not because of the wrong configuration the config.inc.php file, but because of Permissions of the folder where it is located.
Execute command line terminal:
chown -R root:<user web> /etc/phpMyAdmin/
Now everything should be ok. If you use Apache, instead of "web user", set "httpd", "nginx" or how you have the web process user on the server.
I wrote these tips because I went through all the phpMyAdmin config for more than 2 hours, and I still can't get rid of the message: The configuration file now needs a secret passphrase (blowfish_secret). After I resolved the permissions / groups, it disappeared.