【发布时间】:2018-05-25 19:50:47
【问题描述】:
我安装了 LEMP 的 Ubuntu 16.04.3。我添加了 phpmyadmin,但在某个地方我犯了一个错误: 我尝试在https://my.site.com/phpmyadmin 登录,但在登录/密码后它会将我带到该站点:https://my.site.com/index.php?token=***
添加缺少的 'phpmyadmin/' https://my.site.com/phpmyadmin/index.php?token=*** 让我进去。
但是,我没有得到完整的菜单。我没有权限选项卡。
nginx 配置文件包含我的一个站点上的 phpmyadmin 的这个。
location /phpmyadmin {
root /usr/share/;
index index.php;
try_files $uri $uri/ =404;
location ~ ^/phpmyadmin/(doc|sql|setup)/ {
deny all;
}
location ~ /phpmyadmin/(.+\.php)$ {
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
include snippets/fastcgi-php.conf;
}
}
我错过了什么?
【问题讨论】:
标签: nginx phpmyadmin