by

5

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

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

5

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.

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

You may also be interested in...

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

  1. Opanegro says:

    Thanks bro, original work

  2. Baganaakh says:

    Chown -R root: nginx / etc / phpMyAdmin /
    Ruined my computer i cant login says session error

    1. Stealth says:

      are you sure if the user and the group names are correct?

  3. Jan-Hendrik says:

    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

  4. Gabrielle Fouix says:

    Thank you for your help for this secret sentence where it had to have at least 32 characteristics

Leave a Reply

Your email address will not be published. Required fields are marked *