Phpmyadmin configuration file now requires two top-password short password (blowfish_secret) solutions _ PHP Tutorial

Source: Internet
Author: User
The phpmyadmin configuration file now requires two top-secret short passwords (blowfish_secret. There are two solutions: (The second method is recommended) 1. configure config under phpmyadmin. inc. php changes the cookie to an http copy code: viusr?phpmyadminconfig. inc. php [.. there are two solutions: (The second method is recommended)

1. configure config. inc. php under phpmyadmin to change the cookie to http

The code is as follows:

Vi/usr/share/phpmyadmin/config. inc. php
[...]
/* Authentication type */
$ Cfg ['servers'] [$ I] ['auth _ type'] = 'cooker ';
[...]

Open the browser and enter the management address. the logon window is displayed. enter the user name and password and the password.

However, I am not used to it, and it will pop up again when I select to log out on the management interface, making people feel like logging out with a password.

2. compare the configuration of phpmyadmin in ubuntu. there is such a configuration in config. inc. php in ubuntu.

The code is as follows:

// Load secret generated on postinst
Include ('/var/lib/phpmyadmin/blowfish_secret.inc.php ');


Check/var/lib/phpmyadmin/blowfish_secret.inc.php. there is only one sentence.

The code is as follows:

$ Cfg ['blowfish _ secret'] = 'w1hm7axcx5aqvutjvoygdepy ';

The "$ cfg ['blowfish _ secret'] =" statement in phpmyadmin installed in CentOS is in config. inc. php.

The code is as follows:

Vim/usr/share/phpmyadmin/config. inc. php


Find

The code is as follows:

$ Cfg ['blowfish _ secret'] = '';/* you must fill in this for cookie auth! */


Add any character after =

The code is as follows:

$ Cfg ['blowfish _ secret '] = 'poo';/* you must fill in this for cookie auth! */


Pooy is a random character.

Restart httpd and then open the management page.

Still look at this habit, but then enter the root and password, the system prompts me root @ localhost password error: error 'Access denied for user 'root' @ 'localhost' (using password: NO), it is always unable to enter, so the browser's cookie is cleared and then enters the normal

Configure (the second type is recommended) 1. configure the config under phpmyadmin. inc. php changes cookie to http code as follows: vi/usr/share/phpmyadmin/config. inc. php [.....

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.