我有phpMyAdmin在Nginx上運行。當我嘗試登錄時,發生的唯一情況是url參數「令牌」刷新/更新。我實際上沒有被重定向到主phpMyAdmin頁面,我沒有收到任何錯誤。phpMyAdim在Nginx上將不會登錄
這裏是我的服務器塊:
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文件的最後兩行:
我的error.log文件的最後一行是:[25/Apr/2014:10:39:04 -0500] "POST /phpMyAdmin/index.php HTTP/1.1" 302 5 " http://ip.addr.here/phpMyAdmin/index.php?token=86419bd6905a7db027f7e0723d01484f " "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.116 Safari/537.36" "-" 172.16.2.231 - - [25/Apr/2014:10:39:04 -0500] "GET /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, like Gecko) Chrome/34.0.1847.116 Safari/537.36" "-"
另外,如果我打開我的phpmyadmin config.inc.php文件,並替換此:
$cfg['Servers'][$i]['auth_type'] = 'cookie';
與此:
$cfg['Servers'][$i]['auth_type'] = 'http';
我可以登錄,但我不能瓶坯任何funcitons 。我收到一個錯誤,說「錯誤:令牌不匹配」。
你找到了一個解決方案? – Neel