Ubuntu under phpMyAdmin must enable cookies to login how to resolve

Source: Internet
Author: User
Ubuntu under phpMyAdmin must enable cookies to login how to solve
After installing the phpMyAdmin in Ubuntu, the first time you can log in, prompted to enable the use of cookies to log in, and then login not to go in, ask you master, in Ubuntu under this problem how to solve

------Solution--------------------
Apt-get installed? I see other people also have this problem, you see if I can solve it for you

When using the latest phpMyAdmin, the login page always prompts "Cookies must be enabled to log in", a problem that has plagued me for a long time.

Google and Baidu search for N-multiplayer solutions, as if none, the problem still exists.
Later I groped for a change, suddenly good, relatively simple, the solution is as follows.

We will directly use the configuration file in the PhpMyAdmin installation directory config.sample.inc.php Save as config.inc.php. That's right. But there are a few things to note:
$cfg [' blowfish_secret '] = ' cookie '; Be sure to fill out the general cookie can be filled.
Also, if MySQL is connected using the socket, don't forget to modify the following line:
$cfg [' Servers '] [$i] [' connect_type '] = ' socket ';

Above this step normal people can correct, but only to modify the root directory config.inc.php This file is not possible, there is a file to be modified, is the libraries directory config.default.php this file.

In config.default.php this file, the place to be modified is:
$cfg [' blowfish_secret '] = ' cookie '; The default is empty in the file, where you need to fill in the same value as config.inc.php.
If MySQL is connected using the socket, the following two lines are also modified:
$cfg [' Servers '] [$i] [' socket '] = '/tmp/mysql.sock '; This needs to be based on your MySQL configuration content, if you do not know to use the default MySQL settings
$cfg [' Servers '] [$i] [' connect_type '] = ' socket ';

Re-refresh the phpMyAdmin login page to solve the problem!
  • 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.