phpMyAdim on Nginx won't log in


phpMyAdim on Nginx won't log in

我在Nginx上运行了phpMyAdmin。当我尝试登录时,唯一发生的事情就是url param"token"刷新/更新。我实际上并没有被重定向到phpMyAdmin主页面,也没有收到任何错误。

这是我的服务器块:

server {
    server_name localhost;
    location {
        root /usr/share/phpMyAdmin;
        index.php index index.html index.htm;
    }
    location ~ '.php$ {
        root    /usr/share/phpMyAdmin;
        fastcgi_pass 127.0.0.1:9000;
        fastcgi_index index.php;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        include fastcgi_params;
    }
    access_log /var/log/nginx/phpmyadmin.access.log;
    error_log /var/log/nginx/phpmyadmin.error.log;
    include /etc/nginx/global/common.conf;
} 

这是我的common.conf文件的链接,http://pastebin.com/13F9bXSR

以下是我的access.log文件的最后两行:

【2014年4月25日:10:39:04-0500】"POST/phpMyAdmin/index.php HTTP/1.1"3025."http://ip.addr.here/phpMyAdmin/index.php?token=86419bd6905a7db027f7e0723d01484f"Mozilla/5.0(Windows NT 6.3;WOW64)AppleWebKit/537.36(KHTML,类似Gecko)Chrome浏览器/34.0.1847.116 Safari浏览器/537.36"-"172.16.2.231--【2014年4月25日:10:39:04-0500】"获取/phpMyAdmin/index.php?token=d49df5c1271c93c59d39f9fcda2d042a HTTP/1.1"200 2931"http://ip.addr.here/phpMyAdmin/index.php?token=86419bd6905a7db027f7e0723d01484f"Mozilla/5.0(Windows NT 6.3;WOW64)AppleWebKit/537.36(KHTML,类似Gecko)Chrome浏览器/34.0.1847.116 Safari浏览器/537.36"-"

这是我的error.log文件的最后一行:

2014/04/25 12:17:23[警告]11865#0:*2读取上游时,将上游响应缓冲到临时文件/var/cache/nginx/fastcgi_temp/1/00/00/000000000001,客户端:ip.addr.here,服务器:ip.addr.here,request:"GET/phpMyAdmin/js/GET_scripts.js.php?token=33631986de7e454290267650bd8acecdC&scripts[]=jquery/jquery-1.8.3.min.js&scripts[]=ajax.js&script[]=keyhandler.js&scripts[]=jquery/jquery-ui-1.9.2.custom.min.js&script[]=jquery/jquery.ssprintf.js&scripts[]=jquery.jquery.cookie.js&aamp;scripts[]=jquery.jquery.mousewheel.js&脚本[]=jquery/jquery.event.drag-2.2.js&scripts[]=jquery/jquery ui时间选择器插件.js&scripts[]=j$

另外,如果我打开我的phpmyadmin config.inc.php文件并替换它:

$cfg['Servers'][$i]['auth_type']='cookie';

这个:

$cfg['Servers'][$i]['auth_type']='http';

我可以登录,但无法预设置任何功能。我收到一个错误,上面写着"错误:令牌不匹配"。

在nginx-config:中尝试

http {
     ...
     proxy_max_temp_file_size 0;
     proxy_buffer_size 4k;
     proxy_buffers 32 4k;