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 CentOS 7 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.
Run the command line in the 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 this tip because I spent more than 2 hours going through the entire phpMyAdmin configuration, and I still couldn't get rid of the message: The configuration file now needs a secret passphrase (blowfish_secret). After I fixed the permissions/groups, it disappeared.
Makasih gan, asli work
Chown -R root: nginx / etc / phpMyAdmin /
Ruined my computer and I can't login says session error
Are you sure if the user and group names are correct?
I have a set of vendor config (in /usr/share/phpmyadmin/libraries/vendor_config.php):
define ('CONFIG_DIR', '/ etc / phpmyadmin');
Here is the backslash, also so:
define ('CONFIG_DIR', '/ etc / phpmyadmin /');
Danach klappte es auch mit dem Secret
Thank you for your help with this secret phrase, which should be at least 32 characters long