sudo vim /etc/php.ini

找到 display_errors = Off ,把Off 改为 On . 最后为 display_errors = On ;

找到 error_reporting = E_ALL & ~E_NOTICE 或者error_reporting = E_ALL & ~E_DEPRECATED  改为 error_reporting = E_ALL | E_STRICT

 


 

sudo vim /etc/apache2/httpd.conf

在文件的最后面加上下面代码:

php_flag display_errors        on

php_value error_reporting       2039


 

 

重启apache就OK了 ,sudo apachectl restart;

 

相关文章:

  • 2021-10-18
  • 2021-06-23
  • 2022-12-23
  • 2021-04-09
  • 2022-02-05
猜你喜欢
  • 2021-09-22
  • 2022-12-23
  • 2021-09-12
  • 2022-12-23
  • 2021-08-17
  • 2022-12-23
相关资源
相似解决方案