[Fix phpMyAdmin] The configuration file now needs a secret passphrase (blowfish_secret)

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 in terminal command line:

 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.

Founder and editor Stealth Settings, from 2006 to the present. Experience on operating systems Linux (in particular CentOS), Mac OS X, Windows XP> Windows 10 si WordPress (CMS).

How to » Linux » MySQL » [Fix phpMyAdmin] The configuration file now needs a secret passphrase (blowfish_secret)

5 thoughts on “[Fix phpMyAdmin] The configuration file now needs a secret passphrase (blowfish_secret)”

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

    Reply
Leave a Comment