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, it gives headaches. Especially when configured correctly in "/etc/phpMyAdmin/config.inc.php"
Of course, the path might vary from one configuration to another, but on 7 CentOS cu phpMyAdmin Installed via "yum"In"remi.repo", The config file will be located in" / etc / phpMyAdmin / ".
Okay, let's see how we solve "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" over 32 characters, the red message in phpMyAdmin should disappear.
If this is not the case, it is a good idea to delete cookies from your browser and de-login from phpMyAdmin. At the next login, the "The configuration file now needs a secret passphrase (blowfish_secret)"He will not 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 fine. If you use Apache, instead of "user web", set "httpd", "nginx" or how you have the user of the web process 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.