Nginx下开启错误提示的配置

修改1:/usr/local/php/etc/php.ini,把
display_errors = Off
改成
display_errors = On

修改2:/usr/local/php/etc/php-fpm.conf,把
;php_flag[display_errors] = off
改成
php_flag[display_errors] = on

然后重启php-fpm:
/etc/init.d/php-fpm restart

Tags:

Leave a Reply