一、修改php.ini

把里面的display_errors = On打开,默认应该是off

二、修改php-fpm.conf

增加个参数php_flag[display_errors] = on

重启下php就行了。