2012-01-09 46 views
0

我目前正在嘗試在http://host.site.com/phpmyadmin之類的網址上設置phpMyAdmin安裝,並且我遇到了一些磚牆。這是細節。phpMyAdmin + nginx + Arch Linux =無法繼續登錄屏幕,需要建議

phpMyAdmin的3.4.9

的Linux 3.1.7-1拱(Arch Linux的OS)

nginx的1.10.x

的MySQL 5.0.90(我想,不要引用我對)

提供給用戶拱門(5.3.7)

會發生什麼事是最新的PHP,當我訪問我的網站的PMA安裝,在這個例子將是good.cakeisal ie.com/phpMyAdmin,我會得到通常的PMA登錄屏幕,輸入用戶名和密碼登錄到SQL服務器。

然而,當我填寫表格時,Firefox的加載圈旋轉了,但是這讓我想到了一些古怪的網址,例如:

hxxp://good.cakeisalie.com/mnt/hd1/www/good.cakeisalie.com/ phpMyAdmin的/ index.php文件LANG = EN &令牌= d7177644eb3a22077864e89fc0da9c3b, hxxp:??//good.cakeisalie.com/phpMyAdmin/index.php LANG = EN &令牌= d7177644eb3a22077864e89fc0da9c3b。我對這個問題感到困惑,我無法弄清楚發生了什麼。

這是我nginx的條目(剝離下來,以幫助找到元兇部件):

server { 
# UTF-8 
charset utf-8; 

# server name 
server_name good.cakeisalie.com; 
root /mnt/hd1/www/good.cakeisalie.com; 
index index.php index.html index.htm; 

location/{ 
# error_page 404 some.file; 
# error_page 422 some.file; 
# error_page 500 502 503 504 some.file; 
# error_page 403 some.file; 
} 

# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 
# 
location ~ \.php$ { 
#  root   html; 
include  fastcgi_params; 
fastcgi_param SCRIPT_FILENAME /mnt/hd1/www/good.cakeisalie.com$fastcgi_script_name; 
    if ($uri !~ "^/uploads/") { 
    fastcgi_pass 127.0.0.1:9000; 
    } 
} 
# deny access to .htaccess files, if Apache's document root 
# concurs with nginx's one 
# 
location ~ /\.ht { 
     deny all; 
} 
} 

在此先感謝,如果你能幫助我解決這個問題! - Cubeburner。

回答

0

我自己修復了。

必須將$ cfg ['PmaAbsoluteUri']設置爲正確的URL,所以一切都很順利。

我知道我錯過了一些簡單的事情。 > _>