phpmyadmin 白屏问题???

Ubuntu nginx php-fpm 下phpmyadmin 无法正常显示?

$cfg['OBGzip'] = FALSE; 无效

$cfg['AllowThirdPartyFraming'] = true; 页面出来了 但排版排版乱了

phpmyadmin version 4.7.5

get_scripts.js.php?scripts[]=vendor/jquery/jquery.min.js&scripts[]=vendor/jquery/jquery-migrate.js&scripts[]=vendor/sprintf.js&scripts[]=ajax.js&scripts[]=keyhandler.js&scripts[]=vendor/jquery/jquery-ui.min.js&scripts[]=vendor/js.cookie.js&scripts[]=vendor/jquery/jquery.mousewheel.js&scripts[]=vendor/jquery/jquery.event.drag-2.2.js&scripts[]=vendor/jquery/jquery-ui-timepicker-addon.js&v=4.8.0-dev:1 Uncaught SyntaxError: Unexpected token <
21:28:46.228 get_scripts.js.php?scripts[]=vendor/jquery/jquery.ba-hashchange-1.3.js&scripts[]=vendor/jquery/jquery.debounce-1.0.5.js&scripts[]=menu-resizer.js&scripts[]=cross_framing_protection.js&scripts[]=rte.js&scripts[]=vendor/tracekit.js&scripts[]=error_report.js&scripts[]=config.js&scripts[]=doclinks.js&scripts[]=functions.js&v=4.8.0-dev:1 Uncaught SyntaxError: Unexpected token <
21:28:46.229 get_scripts.js.php?scripts[]=navigation.js&scripts[]=indexes.js&scripts[]=common.js&scripts[]=page_settings.js&scripts[]=shortcuts_handler.js&scripts[]=vendor/codemirror/lib/codemirror.js&scripts[]=vendor/codemirror/mode/sql/sql.js&scripts[]=vendor/codemirror/addon/runmode/runmode.js&scripts[]=vendor/codemirror/addon/hint/show-hint.js&scripts[]=vendor/codemirror/addon/hint/sql-hint.js&v=4.8.0-dev:1 Uncaught SyntaxError: Unexpected token <
21:28:46.230 get_scripts.js.php?scripts[]=vendor/codemirror/addon/lint/lint.js&scripts[]=codemirror/addon/lint/sql-lint.js&scripts[]=console.js&v=4.8.0-dev:1 Uncaught SyntaxError: Unexpected token <
21:28:46.234 messages.php?l=zh_CN&v=4.8.0-dev&server=0:379 Uncaught ReferenceError: $ is not defined
    at messages.php?l=zh_CN&v=4.8.0-dev&server=0:379
(anonymous) @ messages.php?l=zh_CN&v=4.8.0-dev&server=0:379
21:28:46.236 (index):2 Uncaught ReferenceError: PMA_commonParams is not defined
    at (index):2

以上是chrome提示错误

nginx 配置

user  nginx nginx;
worker_processes  4;

error_log  /var/log/nginx/error.log;
#error_log  logs/error.log  notice;
#error_log  logs/error.log  info;

pid /run/nginx.pid;

events {
    worker_connections  1024;
}

http {
    include       mime.types;
    default_type  application/octet-stream;
    log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
                      '$status $body_bytes_sent "$http_referer" '
                      '"$http_user_agent" "$http_x_forwarded_for"';
    access_log  /var/log/nginx/access.log  main;
    sendfile        on;
    #tcp_nopush     on;
    #keepalive_timeout  0;
    keepalive_timeout  65;

    #hide nginx version info and forbid scan the website's index
    server_tokens off;
    autoindex off;
    #redirect the request tonginx when FastCGI make a http response with 4xx or 5xx
    fastcgi_intercept_errors on;

    #config the fastcgi
    fastcgi_connect_timeout 300;
    fastcgi_send_timeout 300;
    fastcgi_read_timeout 300;
    fastcgi_buffer_size 64k;
    fastcgi_buffers 4 64k;
    fastcgi_busy_buffers_size 128k;
    fastcgi_temp_file_write_size 128k;

    #support gzip compress
    gzip on;
    gzip_min_length 1k;
    gzip_buffers 16 64k;
    gzip_http_version 1.1;
    gzip_comp_level 6;
    gzip_types text/plain application/x-javascript text/css application/javascript text/javascript image/jpeg image/gif image/png application/xml application/json;
    gzip_vary on;
    gzip_disable "MSIE [1-6].(?!.*SV1)";

    server {
        listen               *:80;
        server_name          localhost;
        #set the website's root dir
        root   /www/phpmyadmin;
        index  index.php index.html;

        charset utf-8;
        #access_log  /var/log/nginx/log/host.access.log  main;

        #set the expires of static resource such as css, javascript
        location ~ .*\.(css|js|ico|png|gif|jpg|json|mp3|mp4|flv|swf)(.*) {
            expires 60d;
            access_log off;
        }

        #set the 40x error page
        error_page  400 401 402 403 404  /40x.html;
        location = /40x.html {
            root   html;
            index  index.html index.htm;
        }

        # redirect server error pages to the static page /50x.html
        #
        error_page   500 501 502 503 504  /50x.html;
        location = /50x.html {
            root   html;
            index  index.html index.htm;
        }

        # pass the PHP scripts to FastCGI server by tcp socket way other than listening on 127.0.0.1:9000
        location  ~ .*\.php(\/.*)*$ {
            fastcgi_split_path_info ^(.+\.php)(/.+)$;
            #fastcgi_pass   127.0.0.1:9000;
            # the better form of fastcgi_pass than before
            fastcgi_pass   unix:/var/run/php-fpm/php-fpm.sock;
            fastcgi_index  index.php;
            fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
            include        /etc/nginx/fastcgi_params;
        }
    }
}
《L05 电商实战》
从零开发一个电商项目,功能包括电商后台、商品 & SKU 管理、购物车、订单管理、支付宝支付、微信支付、订单退款流程、优惠券等
《L04 微信小程序从零到发布》
从小程序个人账户申请开始,带你一步步进行开发一个微信小程序,直到提交微信控制台上线发布。
讨论数量: 0
(= ̄ω ̄=)··· 暂无内容!

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!