Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to set-up the fresh phpMyAdmin install on my Debian 6 server to use http authentication rather than the cookie based auth that is default when it is installed.

To do this, I edited the $cfg['Servers'][$i]['auth_type'] line to use 'http' as its setting in /etc/phpmyadmin/, and restarted the server, but the setting seems to be being ignored, as when I goto phpmyadmin, it is still offering up the regular login box.

I've done this twice before (once on debian and once on ubuntu), so I'm not sure why it isn't working this time.

Thank you

share|improve this question
up vote 0 down vote accepted

On Debian 6, I just edited /usr/share/phpmyadmin/ which holds the defaults.

I changed

if (!isset($cfg['Servers'][$i]['auth_type'])) {
    $cfg['Servers'][$i]['auth_type'] = 'cookie';


if (!isset($cfg['Servers'][$i]['auth_type'])) {
    $cfg['Servers'][$i]['auth_type'] = 'http';

There's a big header in that file warning you not to edit it but, you know, it worked! I'm awaiting all the reasons why you shouldn't do what I did.

share|improve this answer
Alas, this isn't the answer that I wanted - but it is the one that has worked. Maybe there is an issue with debian's phpMyAdmin config, because the advice to edit /etc/phpmyadmin/ rather than /usr/share/phpmyadmin/ clearly doesn't work. – Daniel Hollands May 21 '12 at 15:53
"why you shouldn't do what I did": because after the next upgrade to phpMyAdmin all your settings will be lost. – ntd Nov 4 '15 at 7:25

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.