两个步骤:
-
修改php.ini配置文件中的error_reporting 和 display_errors两地方内容:
sudo vim /etc/php/7.0/apache2/php.ini
error_reporting = E_ALL | E_STRICT
display_errors = On
-
重启Apache服务:
sudo service apache2 restart
sudo vim /etc/php/7.0/apache2/php.ini
error_reporting = E_ALL | E_STRICT
display_errors = On
sudo service apache2 restart