Reputation: 327
I've just downloaded phpMyAdmin 4.8.1 via composer on my local machine (windows) after installing my lamp stack apache 2.4, php 7.2, mariadb 10.3, but when I login using root (without password) it gave me this error on Chrome 67:
Failed to set session cookie. Maybe you are using HTTP instead of HTTPS to access phpMyAdmin.
I've already set the blowfish secret and comment //$cfg['Servers'][$i]['AllowNoPassword'] = false;
I've already cleared my browser cache. This is a local development not production box. If I use $cfg['Servers'][$i]['auth_type'] = 'http';
I can login successfully but when i use the cookie
it gave me that error so I can't proceed to login.
Upvotes: 6
Views: 17316
Reputation: 333
In my scenario, I deployed phpMyAdmin using Helm. The problem arose because I initially used bitnami/phpmyadmin. It seems they have specific configurations related to their Helm chart. However, when I created my own Helm chart using the official phpMyAdmin container image, the issue was resolved without encountering that error.
One thing to note is to be mindful of environment variables, as some are mandatory, such as:
MYSQL_ROOT_PASSWORD (required)
PMA_HOST (preferably added instead of setting an arbitrary server so the host is not unknown).
Upvotes: 0
Reputation: 31
just add this line command at end of config.inc.php
inside phpmyadmin
directory
$cfg['Servers'][$i]['auth_type'] = 'http';
Upvotes: 0
Reputation: 2785
I solved it by resetting the cache of the page. Hold down the shift key
on your keyboard and click on the refresh icon
close to the address bar on your Chrome browser.
Upvotes: 1
Reputation: 11
We had the same problem. Thanks to you, I was able to fix it. You just have to add this line to your config.inc.php
:
$cfg['Servers'][$i]['auth_type'] = 'http';
For context, this goes below the following condition:
if($wampConf['SupportMariaDB'] =='on')
Upvotes: 1