phpmyadmin UI显示双标签

时间:2018-07-22 23:17:04

标签: phpmyadmin

phpmyadmin在选项卡上显示双标签,并且左侧面板不可读

我在另一篇文章中发现了相同的问题(phpmyadmin user interface repeating all clickable links),但是该解决方案对我不起作用。 我有Ubuntu 16.04,php7,nginx 1.10.3和最新的phpmyadmin。

enter image description here

1 个答案:

答案 0 :(得分:1)

已解决

我必须先安装php-fpm,然后在/ etc / nginx / sites-available / default中安装以替换“ fastcgi_pass unix:/var/run/php5-fpm.sock;”。与“ fastcgi_pass Unix:/var/run/php/php7.0-fpm.sock;”。

最终代码是

location ^~/phpmyadmin {
           root /usr/share/;
           index index.php index.html index.htm;
           location ~ ^/phpmyadmin/(.+\.php)$ {
                   try_files $uri =404;
                   root /usr/share/;
                   fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
                   fastcgi_index index.php;
                   fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                   include /etc/nginx/fastcgi_params;
           }
           location ~* ^/phpmyadmin/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
                   root /usr/share/;
           }
    }
    location /phpMyAdmin {
           rewrite ^/* /phpmyadmin last;
    }  
}