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

Whether it is installedphpMyAdmin on a server Ubuntu, Centos or etc. Fedora Distribution, message “The configuration file now needs a secret passphrase (blowfish_secret)” With red at the bottom of the index, shake your head. Especially when configured correctly in “/etc/phpMyAdmin/config.inc.php“.
Of course, the path could 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/”.

Well, let's see how we solve“The configuration file now needs a secret passphrase (blowfish_secret)“, if inconfig.inc.php We have the present 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, PHPmyadmin's red message should disappear.
In the situation where this did not happen, it is good to delete cookies at the browser and to dislodge from Phpmyadmin. At the next authentication, the message “The configuration file now needs a secret passphrase (blowfish_secret)” it will not be present anymore.
However, there are situations in which it is present not because of the wrong configuration of the config.inc.php file, but because of the folder's permissions in which he is.

Execute the command line in the terminal:

 chown -R root:<user web> /etc/phpMyAdmin/

Now everything should be ok. If you use Apache, instead of “user web”, set “httpd”, “nginx” Or how do you have the user process user on the server.

I wrote this tips because I turned more than 2 hours throughout the pHpmyadmin config, and I still do not get rid of the message: The Configuration File Now Needs a Secret Pasphrase (Blowfish_secret). After solving the permissions / groups, he disappeared.

Founder and editor Stealth Settings, din 2006 pana in prezent. Experienta pe sistemele de operare Linux (in special CentOS), Mac OS X , Windows XP > Windows 10 si WordPress (CMS).

Home Your source of IT tutorials, useful tips and news. [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 had in my Vendor Config (in /usr/share/phpmyadmin/libraries/vendor_config.php):

    define(‘CONFIG_DIR’, ‘/etc/phpmyadmin’);

    The backslash was missing here, so:

    define(‘CONFIG_DIR’, ‘/etc/phpmyadmin/’);

    Then it also worked with the secret

    Reply
Leave a Comment