打开phpmyadmin一直是空白的,发现是js的问题,原因是pma的js/get_script_js.php读取js不完整
很容易的将问题原因想到了php的输出缓存大小上,我把php.ini里的output_buffering调整为102400还是不行
后来我就去查找php-fpm的日志,没有找到问题原因
又去查找了nginx的日志,发现了问题
2014/04/16 15:18:21 [crit] 5270#0: *16 open() "/usr/local/nginx1.4.7/fastcgi_temp/3/00/0000000003" failed (13: Permission denied) while reading upstream, client: 36.46.28.166, server: localhost, request: "GET /pma/js/get_scripts.js.php?token=24053dc0c1647f04ebcb6de641947499&scripts[]=jquery/jquery-1.8.3.min.js&scripts[]=ajax.js&scripts[]=keyhandler.js&scripts[]=jquery/jquery-ui-1.9.2.custom.min.js&scripts[]=jquery/jquery.sprintf.js&scripts[]=jquery/jquery.cookie.js&scripts[]=jquery/jquery.mousewheel.js&scripts[]=jquery/jquery.event.drag-2.2.js&scripts[]=jquery/jquery-ui-timepicker-addon.js&scripts[]=jquery/jquery.ba-hashchange-1.3.js&scripts[]=jquery/jquery.debounce-1.0.5.js&scripts[]=jquery/jquery.menuResizer-1.0.js&scripts[]=cross_framing_protection.js&scripts[]=rte.js&scripts[]=tracekit/tracekit.js&scripts[]=error_report.js&scripts[]=doclinks.js&scripts[]=functions.js&scripts[]=navigation.js&scripts[]=indexes.js&scripts[]=common.js&scripts[]=codemirror/lib/codemirror.js&scripts[]=codemirror/mode/sql/sql.js&scripts[]=codemirror/addon/runmode/runmode.js HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "***.***.***.***", referrer: "http://xxx/pma/"
2014/04/16 15:18:21 [crit] 5270#0: *12 open() "/usr/local/nginx1.4.7/fastcgi_temp/4/00/0000000004" failed (13: Permission denied) while reading upstream, client: 36.46.28.166, server: localhost, request: "GET /pma/phpmyadmin.css.php?server=1&token=24053dc0c1647f04ebcb6de641947499&nocache=4188701269ltr HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "***.***.***.***", referrer: "http://xxx/pma/"
问题终于被我发现了,把/usr/local/nginx1.4.7/fastcgi_temp/设置为php-fpm用户的拥有者就可以了