2012-01-09 49 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,所以一切都很顺利。

我知道我错过了一些简单的事情。 > _>