php8 在php.ini里设置了display_errors = Off,但是前台页面还会显示错误

发表于

解决方案:需要在php-fpm的配置文件www.conf里做如下设置:

php_flag[display_errors] = On