title: phpMyAdmin 4.6.2 token mismatch
body: <p>I'm getting the dreaded "token mismatch" error on my phpMyAdmin. My install lives in a vagrant/ansible box so it is a clean system.</p>
  
  <p>If I have auth_type set to "cookie" I simply stay on the login page and if I set it to "http" I get the "token mismatch" error.</p>
  
  <p>phpMyAdmin config.inc.php</p>
  
  <pre><code>$cfg['blowfish_secret'] = '123'; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! 
  $i = 0;
  $i++;
  /* Authentication type */
  $cfg['Servers'][$i]['auth_type'] = 'http'; // or cookie
  /* Server parameters */
  $cfg['Servers'][$i]['host'] = 'localhost';
  $cfg['Servers'][$i]['connect_type'] = 'tcp';
  $cfg['Servers'][$i]['compress'] = false;
  $cfg['Servers'][$i]['AllowNoPassword'] = false;
  </code></pre>
  
  <p>Nginx config:</p>
  
  <pre><code>server
    {
    listen 80 default;
    server_name dev.company.local _;
  
    root /var/www/sites/dev.company.local;
  
    access_log /var/log/nginx/dev.company.local-access.log combined;
    error_log /var/log/nginx/dev.company.local-error.log notice;
    index index.html index.php;
  
    include fastcgi_portal.conf;
  
    location /phpmyadmin/(.*) {
          alias /usr/share/phpMyAdmin;
    }
  
    }
  </code></pre>
  
  <p>I won't post my php.ini here as it such a huge file but few options are configured.</p>
  
  <p>Things I've already checked:</p>
  
  <ul>
  <li><code>session.gc_maxlifetime = 1440</code></li>
  <li><code>session.save_path = /var/lib/php/session</code> (set to 777, also tried <code>/tmp</code>)</li>
  <li>mcrypt is enabled</li>
  <li>clearing browser cookies etc</li>
  <li>verified my mysql credentials</li>
  <li>set the correct time + timezone of the VM</li>
  </ul>
  
  <p>I found bug reports like <a href="https://sourceforge.net/p/phpmyadmin/bugs/3893/" rel="nofollow">https://sourceforge.net/p/phpmyadmin/bugs/3893/</a> but for me it does not seem to be fixed :)</p>
  
  <p>Other info:</p>
  
  <ul>
  <li><code>CentOS release 6.7 (Final)</code></li>
  <li><code>nginx version: nginx/1.0.15</code></li>
  <li><code>PHP 5.6.22 (fpm-fcgi) (built: May 26 2016 15:45:15)</code></li>
  </ul>
  
  <p>I've tried the current phpMyAdmin version (4.6.2), the previous version (4.6.1) and the long-term version (4.4.15.6) all the same.</p>
  
  <p>Any help would be great!</p>